mirror of
https://github.com/get-drexa/drive.git
synced 2026-02-03 01:51:17 +00:00
impl: dir content table virtualization
This commit is contained in:
@@ -115,10 +115,13 @@ export const directoryContentQueryAtom = atomFamily(
|
||||
{ returns: DirectoryContentResponse },
|
||||
).then(([_, result]) => result)
|
||||
: Promise.reject(new Error("No account selected")),
|
||||
getNextPageParam: (lastPage, _pages, lastPageParam) => ({
|
||||
...lastPageParam,
|
||||
cursor: lastPage.nextCursor ?? "",
|
||||
}),
|
||||
getNextPageParam: (lastPage, _pages, lastPageParam) =>
|
||||
lastPage.nextCursor
|
||||
? {
|
||||
...lastPageParam,
|
||||
cursor: lastPage.nextCursor,
|
||||
}
|
||||
: null,
|
||||
})
|
||||
}),
|
||||
(paramsA, paramsB) =>
|
||||
|
||||
Reference in New Issue
Block a user