Interface: ContainerProviderProps
Defined in: src/wirestate-react/provision/container-provider.ts:22
Describes props for ContainerProvider.
Remarks
Pass either container or config. Passing both is an error.
Properties
children?
readonly optional children?: ReactNode;Defined in: src/wirestate-react/provision/container-provider.ts:46
React subtree that receives the active container.
config?
readonly optional config?: ContainerConfig;Defined in: src/wirestate-react/provision/container-provider.ts:41
Managed container creation options.
Remarks
Managed containers created from config are disposed on unmount and activate all bindings by default unless activate is provided explicitly. The config is read once when the provider mounts: later changes are ignored. Pass a React key to the provider to recreate the container.
container?
readonly optional container?: Container;Defined in: src/wirestate-react/provision/container-provider.ts:30
External container instance to provide as-is.
Remarks
External container instances are provisioned by this provider, but never disposed.