@beignet/react-query 0.0.15 → 0.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/README.md +3 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -192,7 +192,7 @@ function InfiniteTodoList() {
|
|
|
192
192
|
page: ({ pageParam }) => ({
|
|
193
193
|
query: { cursor: pageParam ?? null },
|
|
194
194
|
}),
|
|
195
|
-
getNextPageParam: (lastPage) => lastPage.nextCursor ?? undefined,
|
|
195
|
+
getNextPageParam: (lastPage) => lastPage.page.nextCursor ?? undefined,
|
|
196
196
|
initialPageParam: null,
|
|
197
197
|
});
|
|
198
198
|
|
|
@@ -339,7 +339,7 @@ const searchOpts = rq(searchTodos).infiniteQueryOptions({
|
|
|
339
339
|
body: { cursor: pageParam ?? null },
|
|
340
340
|
}),
|
|
341
341
|
initialPageParam: null as string | null,
|
|
342
|
-
getNextPageParam: (lastPage) => lastPage.nextCursor ?? undefined,
|
|
342
|
+
getNextPageParam: (lastPage) => lastPage.page.nextCursor ?? undefined,
|
|
343
343
|
});
|
|
344
344
|
```
|
|
345
345
|
|
|
@@ -352,7 +352,7 @@ const infiniteOpts = helper.infiniteQueryOptions({
|
|
|
352
352
|
query: { status: "open", cursor: pageParam ?? null },
|
|
353
353
|
}),
|
|
354
354
|
initialPageParam: null,
|
|
355
|
-
getNextPageParam: (lastPage) => lastPage.nextCursor ?? undefined,
|
|
355
|
+
getNextPageParam: (lastPage) => lastPage.page.nextCursor ?? undefined,
|
|
356
356
|
});
|
|
357
357
|
```
|
|
358
358
|
|