Skip to content

Interface: ContainerProviderProps

Defined in: src/wirestate-react/provision/container-provider.ts:27

Represents props for ContainerProvider.

Remarks

Pass either container or config. Passing both is an error.

Properties

children?

ts
readonly optional children?: ReactNode;

Defined in: src/wirestate-react/provision/container-provider.ts:51

React subtree that receives the active container.


config?

ts
readonly optional config?: CreateContainerOptions;

Defined in: src/wirestate-react/provision/container-provider.ts:46

Managed container creation options.

Remarks

Managed containers created from config are disposed on unmount and activate all entries by default unless activate is provided explicitly. Managed containers are recreated when the normalized config changes by shallow comparison.


container?

ts
readonly optional container?: Container;

Defined in: src/wirestate-react/provision/container-provider.ts:35

External container instance to provide as-is.

Remarks

External container instances are provisioned by this provider, but never disposed.