Interface: ViewSessionOptions
API / @xmachines/play-view / index / ViewSessionOptions
Defined in: packages/play-view/src/view-session.ts:68
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
createStore | (seed) => StateStore | The store factory of the framework. It receives the seed of the view. | packages/play-view/src/view-session.ts:70 |
onFailure? | (error) => void | Receives a failure of the resolution, and a failure of the root that ViewSession.failView records, one time for each attempt. Leave it out when the boundary of the framework reports a failure that the provider throws under it. A failure of the resolution arrives never inside a render. A failure of the root arrives in the call of failView, so it arrives where the provider calls it: in the error hook of the framework, which can run inside a patch. | packages/play-view/src/view-session.ts:80 |