Skip to main content

CreateStoreContextReturn

Signature

interface CreateStoreContextReturn<T, Mos extends [StoreMutatorIdentifier, unknown][] = []> 

Properties

Property

Modifiers

Type

Description

Provider

FunctionComponent<{ children: ReactNode; initial?: Partial<T>; }>

useContext

UseBoundStore<Mutate<StoreApi<T>, Mos>>

withProvider

<P extends object>(Component: ComponentType<P>, initial?: Partial<T>) => FunctionComponent<P>