@rindle/react 0.1.6 → 0.3.1

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/README.md CHANGED
@@ -3,7 +3,8 @@
3
3
  React bindings for Rindle stores.
4
4
 
5
5
  ```tsx
6
- import { Rindle, useQuery } from "@rindle/react";
6
+ import { Rindle, fragmentKey, useFragment, useRoot } from "@rindle/react";
7
+ import { IssueCardFragment, issuesPageQuery, type IssueCardRef } from "./IssueListItem.queries.ts";
7
8
 
8
9
  createRoot(root).render(
9
10
  <Rindle store={app.store}>
@@ -12,12 +13,22 @@ createRoot(root).render(
12
13
  );
13
14
 
14
15
  function Issues() {
15
- const issues = useQuery(queries.issuesPage(null));
16
- return issues.map((issue) => <div key={issue.id}>{issue.title}</div>);
16
+ const [issues, { status }] = useRoot(issuesPageQuery, { limit: 50 }, IssueCardFragment);
17
+ if (status !== "complete" && issues.length === 0) return <p>Loading...</p>;
18
+ return issues.map((issue) => <IssueRow key={fragmentKey(issue)} issue={issue} />);
19
+ }
20
+
21
+ function IssueRow({ issue }: { issue: IssueCardRef }) {
22
+ const data = useFragment(IssueCardFragment, issue);
23
+ if (!data) return null;
24
+ return <div>{data.title}</div>;
17
25
  }
18
26
  ```
19
27
 
20
- `useQuery(query)` returns live `data`, subscribes on mount, and releases on unmount.
28
+ `useRoot(namedQuery, args?, ...ctx?, RootFragment?)` retains the full named root query for sync
29
+ coverage and returns local React-facing data. Passing a root fragment returns opaque refs for the
30
+ root rows; child components read those refs with `useFragment(fragment, ref)`. `useQuery(query)` is
31
+ still available for direct live query reads that do not need fragment-local boundaries.
21
32
 
22
33
  For local-first backends, the React-facing data view is shared by compiled local AST. Each
23
34
  mounted hook still retains its own `name`/`args` lease through the Store, so backend-level
@@ -33,10 +44,20 @@ cannot split local views from remote subscriptions keep the older materialized-v
33
44
  answered. A pending optimistic mutation no longer moves it — "is a write pending here?" is a
34
45
  separate axis on the backend (`backend.pending(qid)` / `onPending`), and `error` is reserved
35
46
  and currently unproduced. Shares `useQuery`'s leased view, so reading both is one subscription.
36
- - `useFragment(fragment, ref)` — a pure read of an already-projected fragment slice off the root
37
- query's view (FRAGMENT-COMPOSITION-DESIGN.md §7). Adds no lease and never re-renders on its own;
38
- it keeps a component tree waterfall-free by letting descendants read the one query the root opened.
47
+ - `useSyncQuery(query)` — retains a named remote query for normalized/local-first sync coverage
48
+ without subscribing React to the broad result tree; returns only `ResultType`.
49
+ - `useRoot(namedQuery, args?, ...ctx?)` retains the full root coverage query and returns
50
+ `[data, details]`, where `details.status` distinguishes loading from completed-not-found.
51
+ Without a fragment argument, `data` is the root query's local React-facing data. Fragment child
52
+ relationships are surfaced as `FragmentRef`s, so children can keep owning their own reads.
53
+ Passing a fragment as the final argument switches `data` to root-ref mode:
54
+ `useRoot(namedQuery, args, RootFragment)`.
55
+ - `useFragment(fragment, ref)` — reads an opaque local fragment ref. It opens a narrow local-only
56
+ query for that fragment and returns `null` until the local row is available. Child relationships
57
+ composed as `sub(alias, rel, ChildFragment)` are refs; inline child builders remain inline data.
58
+ - `fragmentKey(ref)` — stable key for opaque fragment refs, useful for React list keys.
39
59
  - `useRindleStore()` — the `Store` from context, for imperative writes/reads inside components.
60
+ - `SyncQueryCache` — the per-provider cache that dedupes sync-only coverage retains.
40
61
  - `QueryCache` — the per-provider cache that dedupes a query's materialized view across hooks.
41
62
  - `queryCacheKey(query)` — the stable string key (`@rindle/client`'s `stableKey(ast)`) under which
42
63
  the cache stores that view. Same AST → same key → one shared entry, and it matches the SSR seed
package/dist/index.d.ts CHANGED
@@ -1,9 +1,17 @@
1
1
  import type { ReactNode } from "react";
2
- import type { ColsMap, Fragment, FragmentRef, Query, ResultType, Store } from "@rindle/client";
3
- type AnyQuery = Query<any, any, any>;
2
+ import type { AnyQuery, ColsMap, Fragment, FragmentData, FragmentRef, NamedQuery, QueryLocalData, ResultType, Store } from "@rindle/client";
3
+ type AnyFragment = Fragment<any, any, any, any>;
4
4
  export type QueryData<Q extends AnyQuery> = ReturnType<Q["materialize"]>["data"];
5
+ export type RootData<Q extends AnyQuery> = QueryLocalData<Q>;
6
+ export type RootRefData<Q extends AnyQuery, F extends Fragment<any, any, any, any>> = QueryData<Q> extends readonly unknown[] ? readonly FragmentRef<F>[] : FragmentRef<F> | null;
7
+ export interface RootDetails {
8
+ readonly status: ResultType;
9
+ }
10
+ export type RootResult<Q extends AnyQuery> = readonly [data: RootData<Q>, details: RootDetails];
11
+ export type RootRefResult<Q extends AnyQuery, F extends Fragment<any, any, any, any>> = readonly [data: RootRefData<Q, F>, details: RootDetails];
5
12
  export type { ResultType } from "@rindle/client";
6
- export type { Fragment, FragmentRef } from "@rindle/client";
13
+ export type { Fragment, FragmentData, FragmentRef } from "@rindle/client";
14
+ export { fragmentKey } from "@rindle/client";
7
15
  export interface RindleProps<S extends ColsMap = ColsMap> {
8
16
  store: Store<S>;
9
17
  children?: ReactNode;
@@ -12,9 +20,17 @@ interface QueryLease {
12
20
  id: number;
13
21
  viewKey: string;
14
22
  }
23
+ interface SyncLease {
24
+ id: number;
25
+ coverageKey: string;
26
+ }
27
+ interface QueryCacheOptions {
28
+ releaseDelayMs?: number;
29
+ }
15
30
  declare class RindleContextValue {
16
31
  readonly store: Store<ColsMap>;
17
32
  readonly cache: QueryCache;
33
+ readonly syncCache: SyncQueryCache;
18
34
  constructor(store: Store<ColsMap>);
19
35
  }
20
36
  export declare function Rindle<S extends ColsMap>({ store, children }: RindleProps<S>): import("react").FunctionComponentElement<import("react").ProviderProps<RindleContextValue | null>>;
@@ -28,27 +44,65 @@ export declare function useQuery<Q extends AnyQuery>(query: Q): QueryData<Q>;
28
44
  * as {@link useQuery} (so reading both for one query is one subscription), and re-renders only when
29
45
  * the status changes. */
30
46
  export declare function useQueryStatus(query: AnyQuery): ResultType;
47
+ /** Retain a named server query for normalized/local-first sync coverage without subscribing React
48
+ * to that query's broad result tree. The returned value is lifecycle state only; it is `unknown`
49
+ * until the backend reports that the retained coverage has hydrated. */
50
+ export declare function useSyncQuery(query: AnyQuery): ResultType;
51
+ /** Run a named root query and expose its local React-facing data. Fragment child relationships are
52
+ * refs, so child components can keep owning their own local reads. Passing a root fragment as the
53
+ * final argument switches the result to opaque root refs for that fragment. */
54
+ export declare function useRoot<Q extends AnyQuery>(query: Q): RootResult<Q>;
55
+ export declare function useRoot<Q extends AnyQuery, F extends AnyFragment>(query: Q, fragment: F): RootRefResult<Q, F>;
56
+ export declare function useRoot<Q extends AnyQuery>(query: NamedQuery<void, [], Q>): RootResult<Q>;
57
+ export declare function useRoot<Q extends AnyQuery, F extends AnyFragment>(query: NamedQuery<void, [], Q>, fragment: F): RootRefResult<Q, F>;
58
+ export declare function useRoot<Args, Ctx extends readonly unknown[], Q extends AnyQuery>(query: NamedQuery<Args, Ctx, Q>, args: Args, ...ctx: Ctx): RootResult<Q>;
59
+ export declare function useRoot<Args, Ctx extends readonly unknown[], Q extends AnyQuery, F extends AnyFragment>(query: NamedQuery<Args, Ctx, Q>, args: Args, ...ctxAndFragment: [...ctx: Ctx, fragment: F]): RootRefResult<Q, F>;
31
60
  /**
32
- * Read a {@link Fragment}'s slice off the shared root view (FRAGMENT-COMPOSITION-DESIGN.md §7).
61
+ * Read a {@link Fragment}'s local data from an opaque ref.
33
62
  *
34
- * The waterfall-free contract: the ROOT component `useQuery`s the composed query (every child
35
- * fragment spread into it), and every descendant calls `useFragment` a PURE READ of the
36
- * already-projected node at this fragment's alias instead of opening its own `useQuery`. So a
37
- * whole component tree resolves through the ONE query the root opened, with no request waterfall;
38
- * a descendant that opens its own `useQuery` reintroduces the waterfall at that boundary.
63
+ * The query boundary calls {@link useRoot} with a fragment argument to retain the full named
64
+ * coverage query and receive root refs. Descendants call `useFragment` with those refs (or child
65
+ * refs returned by a parent fragment read) to open narrow local-only reads for the fields their
66
+ * fragment owns.
39
67
  *
40
- * Phase 0 is a typed pass-through: `ref` already IS the projected node (the parent got it from
41
- * `useQuery` and handed the slice down), so this returns it typed as the fragment's
42
- * {@link FragmentRef}. `fragment` declares *which* selection this component reads (co-location +
43
- * the seam masking plugs into); masking (Phase 2) narrows the returned shape with no call-site
44
- * change. Not a subscription it adds no lease and never re-renders on its own.
68
+ * `ref` is an opaque token created by {@link useRoot} or returned from another local fragment read.
69
+ * The hook opens a narrow local-only query for this exact fragment and keeps the root coverage
70
+ * lease retained while mounted. Passing a legacy projected data object is unsupported.
71
+ */
72
+ export declare function useFragment<F extends Fragment<any, any, any, any>>(fragment: F, ref: FragmentRef<F> | null | undefined): FragmentData<F> | null;
73
+ /**
74
+ * Render-prop sugar over {@link useFragment}: does the `null` check once. `from` is a fragment ref
75
+ * (or null/undefined — an absent to-one relationship, an emptied `.one()`, or a row deleted out from
76
+ * under a live read); when the row is present `children(data)` renders, otherwise `fallback` (default
77
+ * nothing). Keeps the per-row subscription isolation — a child-only edit re-renders just this read.
45
78
  */
46
- export declare function useFragment<F extends Fragment<any, any, any>>(fragment: F, ref: FragmentRef<F>): FragmentRef<F>;
79
+ export declare function Frag<F extends AnyFragment>({ of, from, fallback, children }: {
80
+ of: F;
81
+ from: FragmentRef<F> | null | undefined;
82
+ fallback?: ReactNode;
83
+ children: (data: FragmentData<F>) => ReactNode;
84
+ }): ReactNode;
85
+ export declare class SyncQueryCache {
86
+ private readonly entries;
87
+ private nextLeaseId;
88
+ private readonly store;
89
+ private readonly releaseDelayMs;
90
+ constructor(store: Store<ColsMap>, opts?: QueryCacheOptions);
91
+ retain(coverageKey: string, query: AnyQuery): SyncLease;
92
+ release(lease: SyncLease): void;
93
+ subscribe(coverageKey: string, listener: () => void): () => void;
94
+ resultType(coverageKey: string): ResultType;
95
+ size(): number;
96
+ private createHandle;
97
+ private scheduleRelease;
98
+ private finalizeRelease;
99
+ }
47
100
  export declare class QueryCache {
48
101
  private readonly entries;
49
102
  private nextLeaseId;
50
103
  private readonly store;
51
- constructor(store: Store<ColsMap>);
104
+ private readonly releaseDelayMs;
105
+ constructor(store: Store<ColsMap>, opts?: QueryCacheOptions);
52
106
  retain<Q extends AnyQuery>(viewKey: string, query: Q): QueryLease;
53
107
  release(lease: QueryLease): void;
54
108
  subscribe(viewKey: string, listener: () => void): () => void;
@@ -69,6 +123,8 @@ export declare class QueryCache {
69
123
  private createMaterializedLease;
70
124
  private chooseCanonical;
71
125
  private setCanonical;
126
+ private scheduleSplitRelease;
127
+ private finalizeSplitRelease;
72
128
  }
73
129
  export declare function queryCacheKey(query: AnyQuery): string;
74
130
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAmB,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAEhH,KAAK,QAAQ,GAAG,KAAK,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;AAGrC,MAAM,MAAM,SAAS,CAAC,CAAC,SAAS,QAAQ,IAAI,UAAU,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;AAEjF,YAAY,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACjD,YAAY,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE5D,MAAM,WAAW,WAAW,CAAC,CAAC,SAAS,OAAO,GAAG,OAAO;IACtD,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC;IAChB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAQD,UAAU,UAAU;IAClB,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;CACjB;AAmCD,cAAM,kBAAkB;IACtB,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;IAC/B,QAAQ,CAAC,KAAK,EAAE,UAAU,CA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