feat(globalStateStore): implement global state management with persistence
- refactor state structure to include app, layout, navigation, owner, program, session, and user - add slices for managing program, session, owner, user, layout, navigation, and app states - create context provider for global state with automatic fetching and throttling - implement persistence using IndexedDB with localStorage fallback - add comprehensive README documentation for usage and API
This commit is contained in:
@@ -1,9 +1,16 @@
|
||||
export { ProgramDataWrapper } from './src/ProgramDataWrapper'
|
||||
export {
|
||||
getApiURL,
|
||||
getAuthToken,
|
||||
GetGlobalState,
|
||||
GlobalStateStore,
|
||||
setApiURL,
|
||||
programDataStore,
|
||||
useProgramDataStore,
|
||||
} from './src/store/ProgramDataStore.store'
|
||||
setAuthToken,
|
||||
useGlobalStateStore
|
||||
} from './GlobalStateStore';
|
||||
|
||||
export type * from './src/types'
|
||||
export type * from './GlobalStateStore.types';
|
||||
|
||||
export {
|
||||
GlobalStateStoreProvider,
|
||||
useGlobalStateStoreContext,
|
||||
} from './GlobalStateStoreWrapper';
|
||||
|
||||
Reference in New Issue
Block a user