test
This commit is contained in:
@@ -3,12 +3,13 @@ import { create } from 'zustand';
|
||||
import { devtools, persist } from 'zustand/middleware';
|
||||
import { immer } from 'zustand/middleware/immer';
|
||||
import { createUserInfoStore, UserInfoState } from '@/entities/user/model/store';
|
||||
import { createBannerInfoStore, BannerInfoState } from '@/entities/common/model/store';
|
||||
import { createBannerInfoStore, BannerInfoState, createCommonStore, CommonState } from '@/entities/common/model/store';
|
||||
import { StorageKeys } from '@/shared/constants/local-storage';
|
||||
|
||||
export type RootStore = {
|
||||
UserStore: UserInfoState;
|
||||
BannerStore: BannerInfoState;
|
||||
CommonStore: CommonState;
|
||||
};
|
||||
export const useStore = create<RootStore>()(
|
||||
devtools(
|
||||
@@ -17,6 +18,7 @@ export const useStore = create<RootStore>()(
|
||||
withLenses(() => ({
|
||||
UserStore: createUserInfoStore,
|
||||
BannerStore: createBannerInfoStore,
|
||||
CommonStore: createCommonStore,
|
||||
})),
|
||||
),
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user