Interface: ViewStoreResolution
API / @xmachines/play-view / index / ViewStoreResolution
Defined in: packages/play-view/src/view-store-lifecycle.ts:65
The result of a resolve — see ViewStoreLifecycle.resolve.
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
generation | number | A number that changes each time that the store of the children changes identity: a new seed, a new controlled store, or the first resolve after a reset. A provider keys its subtree on it, so that a new store also drops the state that a component keeps for itself, such as the text of an unbound input. | packages/play-view/src/view-store-lifecycle.ts:88 |
guardedStore | StateStore | The store to give to the children ($bindState, setState, and a chained set): a write under /context throws. There is one wrapper for each store below it, and the code caches the identity. Therefore a consumer in the style of useSyncExternalStore stays stable. | packages/play-view/src/view-store-lifecycle.ts:74 |
reseeded | boolean | It is true when this resolve made a new store: at the first resolve, on a change of the viewKey, in the fallback for each emission, and on a change of the actor. A provider keys its subtree on generation, which also covers a new controlled store. | packages/play-view/src/view-store-lifecycle.ts:81 |
store | StateStore | The store WITHOUT the guard — the reference of the machinery for its own refresh. | packages/play-view/src/view-store-lifecycle.ts:67 |