@lunora/react 1.0.0-alpha.115 → 1.0.0-alpha.117
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/dist/index.d.mts +6 -0
- package/dist/index.d.ts +6 -0
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -925,6 +925,12 @@ type PageItemOf<F> = ReturnOf<F> extends {
|
|
|
925
925
|
* Changing `fn`, the base `args`, `initialNumItems`, or `shardKey` resets the
|
|
926
926
|
* feed to its first page. The public return shape (`results` / `status` /
|
|
927
927
|
* `loadMore`) is unchanged from the legacy keyset implementation.
|
|
928
|
+
*
|
|
929
|
+
* There is no total-row count here, and deliberately not: `paginate()` never
|
|
930
|
+
* counts the tail, which is what keeps a page O(page) rather than O(table). For
|
|
931
|
+
* a "42 of 1,203" label, subscribe to a `ctx.db.<table>.count(where)` query with
|
|
932
|
+
* the same filter args via `useQuery` — it is live, so it moves with the
|
|
933
|
+
* list. See the pagination concept page.
|
|
928
934
|
*/
|
|
929
935
|
declare const usePaginatedQuery: <F extends FunctionReference>(function_: F, args: "skip" | PaginatedArgs<F>, options: UsePaginatedQueryOptions) => UsePaginatedQueryResult<PageItemOf<F>>;
|
|
930
936
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -925,6 +925,12 @@ type PageItemOf<F> = ReturnOf<F> extends {
|
|
|
925
925
|
* Changing `fn`, the base `args`, `initialNumItems`, or `shardKey` resets the
|
|
926
926
|
* feed to its first page. The public return shape (`results` / `status` /
|
|
927
927
|
* `loadMore`) is unchanged from the legacy keyset implementation.
|
|
928
|
+
*
|
|
929
|
+
* There is no total-row count here, and deliberately not: `paginate()` never
|
|
930
|
+
* counts the tail, which is what keeps a page O(page) rather than O(table). For
|
|
931
|
+
* a "42 of 1,203" label, subscribe to a `ctx.db.<table>.count(where)` query with
|
|
932
|
+
* the same filter args via `useQuery` — it is live, so it moves with the
|
|
933
|
+
* list. See the pagination concept page.
|
|
928
934
|
*/
|
|
929
935
|
declare const usePaginatedQuery: <F extends FunctionReference>(function_: F, args: "skip" | PaginatedArgs<F>, options: UsePaginatedQueryOptions) => UsePaginatedQueryResult<PageItemOf<F>>;
|
|
930
936
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lunora/react",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.117",
|
|
4
4
|
"description": "React hooks for Lunora: useQuery, useMutation, useSubscription, and useAuth",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cloudflare",
|
|
@@ -57,9 +57,9 @@
|
|
|
57
57
|
"access": "public"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@lunora/client": "1.0.0-alpha.
|
|
60
|
+
"@lunora/client": "1.0.0-alpha.112",
|
|
61
61
|
"@lunora/errors": "1.0.0-alpha.39",
|
|
62
|
-
"@lunora/ratelimit": "1.0.0-alpha.
|
|
62
|
+
"@lunora/ratelimit": "1.0.0-alpha.65",
|
|
63
63
|
"@visulima/storage-client": "1.0.3"
|
|
64
64
|
},
|
|
65
65
|
"peerDependencies": {
|