Add a staleTime to library items query

This commit is contained in:
Jackson Harper
2024-08-15 11:56:22 +08:00
parent 39da8e60c1
commit 5373f16328

View File

@ -232,7 +232,7 @@ export function useGetLibraryItems(
},
enabled,
initialPageParam: '0',
// maxPages: 3,
staleTime: 5 * 60 * 1000,
getNextPageParam: (lastPage: LibraryItems) => {
console.log(
'lastPage.pageInfo.hasNextPage: ',