Skip to content

Interface: MountOptions

API / @xmachines/play-dom / MountOptions

Defined in: packages/play-dom/src/create-play-ui.ts:49

The mount options of the MountFn that createPlayUI returns.

They replace or complete the factory options, for one actor and one container. The createPlayUI call sets the factory options (functions, validationFunctions, navigate, onRenderError, and fallback) one time.

Properties

PropertyTypeDescriptionDefined in
loading?booleanWith the value true, the renderer stops each warning about an absent child during the ingestion of a streaming spec. It also gives ctx.ctx.loading to each component implementation.packages/play-dom/src/create-play-ui.ts:61
store?StateStoreThe optional external StateStore, which is the controlled mode. Without it, the renderer makes a new @xstate/store atom for each view transition, with the values of spec.state.packages/play-dom/src/create-play-ui.ts:55