cogsbox-state 0.5.34 → 0.5.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/CogsState.d.ts +1 -2
- package/dist/CogsState.jsx +428 -428
- package/dist/CogsState.jsx.map +1 -1
- package/package.json +1 -1
package/dist/CogsState.d.ts
CHANGED
|
@@ -190,7 +190,6 @@ export type OptionsType<T extends unknown = unknown> = {
|
|
|
190
190
|
reactiveDeps?: (state: T) => any[] | true;
|
|
191
191
|
reactiveType?: ReactivityType[] | ReactivityType;
|
|
192
192
|
syncUpdate?: Partial<UpdateTypeDetail>;
|
|
193
|
-
localStorageKey?: string;
|
|
194
193
|
initState?: {
|
|
195
194
|
ctx?: Record<string, any>;
|
|
196
195
|
initialState: T;
|
|
@@ -277,7 +276,7 @@ type LocalStorageData<T> = {
|
|
|
277
276
|
baseServerState?: T;
|
|
278
277
|
};
|
|
279
278
|
export declare const notifyComponent: (stateKey: string, componentId: string) => void;
|
|
280
|
-
export declare function useCogsStateFn<TStateObject extends unknown>(stateObject: TStateObject, { stateKey, serverSync, localStorage, formElements, middleware, reactiveDeps, reactiveType, componentId,
|
|
279
|
+
export declare function useCogsStateFn<TStateObject extends unknown>(stateObject: TStateObject, { stateKey, serverSync, localStorage, formElements, middleware, reactiveDeps, reactiveType, componentId, initState, syncUpdate, }?: {
|
|
281
280
|
stateKey?: string;
|
|
282
281
|
componentId?: string;
|
|
283
282
|
} & OptionsType<TStateObject>): [TStateObject, StateObject<TStateObject>];
|