InitStoresType
import type { EqualityChecker } from 'zustand'
type InitStoresType<StoresDataType> = {
stores: {
[StoreNameType in keyof StoresDataType]: CreateStoreType<
StoresDataType[StoreNameType]
>
} & {
rehydrate: () => Promise<boolean>
reset: (options?: InitStoresResetOptionsType<StoresDataType>) => void
}
useStores: <StoreNameType extends keyof StoresDataType, Output>(
storeName: StoreNameType,
selector: (data: StoresDataType[StoreNameType]) => Output,
equalityFn?: EqualityChecker<Output>
) => Output
}
Unexpected error with integration github-files: Integration is not authenticated with GitHub
API reference
stores
storesstores.{storeName}
stores.{storeName}stores.rehydrate
stores.rehydratestores.reset
stores.resetuseStores
useStoresLast updated