()
| 42 | }; |
| 43 | |
| 44 | const createInitialState = (): ScheduleStoreState => ({ |
| 45 | schedules: [], |
| 46 | isLoading: false, |
| 47 | error: null, |
| 48 | lastFetched: null, |
| 49 | filters: { ...INITIAL_FILTERS }, |
| 50 | }); |
| 51 | |
| 52 | export const useScheduleStore = create<ScheduleStore>((set, get) => ({ |
| 53 | ...createInitialState(), |
no outgoing calls
no test coverage detected