zustand-fetching
Advanced tools
Comparing version 2.0.7 to 2.0.8
@@ -5,7 +5,7 @@ export type LeitenModalState = { | ||
}; | ||
export type LeitenModalManagerState = { | ||
export interface LeitenModalManagerState { | ||
modals: Record<string, LeitenModalState>; | ||
queue: string[]; | ||
action: (key: string, value: boolean, queue?: boolean) => void; | ||
}; | ||
readonly action: (key: string, value: boolean, queue?: boolean) => void; | ||
} | ||
export declare const useLeitenModalManager: import("zustand").UseBoundStore<import("zustand").StoreApi<LeitenModalManagerState>>; |
@@ -12,2 +12,3 @@ import { produce } from "immer"; | ||
const key = nanoid(10); | ||
useLeitenModalManager.getState().action(key, false); | ||
const setContent = (value) => { | ||
@@ -14,0 +15,0 @@ const nextState = produce(store.getState(), (draft) => { |
{ | ||
"name": "zustand-fetching", | ||
"version": "2.0.7", | ||
"version": "2.0.8", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "description": "Zustand fetching helpers", |
88964
1810