Function useCapacitorStore
- useCapacitorStore<T>(key, defaultValue, context?): [T, ((value: T | IUseStoreSetHandler<T>) => any), (() => any), boolean]
Parameters
- key: string
- defaultValue: T
- context: Context<IStoreContext<any>> = CapacitorStoreContext
Returns [T, ((value: T | IUseStoreSetHandler<T>) => any), (() => any), boolean]
A hook to use a capacitor store (capacitor/preferences)