mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 11:39:50 +02:00
feat: use deferred store
This commit is contained in:
1 parent
2727b2babe
commit
59324f7438
6 files changed
+30
-11
No files matched your search
@@ -26,8 +26,8 @@ export interface App {
|
||||
policiesAgreementIndex: number;
|
||||
}
|
||||
|
||||
export const { Provider, use, useMutation, useStore } = createNextSafeStore(
|
||||
() =>
|
||||
export const { Provider, use, useMutation, useStore, useDeferred } =
|
||||
createNextSafeStore(() =>
|
||||
create<App>()(
|
||||
persist(
|
||||
(set) => ({
|
||||
@@ -38,4 +38,4 @@ export const { Provider, use, useMutation, useStore } = createNextSafeStore(
|
||||
{ name: 'app', merge: (a, b) => merge(b, a) },
|
||||
),
|
||||
),
|
||||
);
|
||||
);
|
||||
Reference in new issue
Block a user