Skip to content

useStoreInternal

Internal hook to access the Zustand store in the Midl context. Prefer useStore for public usage.

Import

ts
import { useStoreInternal } from "@midl/react";

Example

ts
const store = useStoreInternal();

Parameters

NameTypeDescription
customStoreMidlContextStore (optional)Custom store to override the default.

Returns

MidlContextStore — The Zustand store instance.

Released under the MIT License