Yehoshua Sandler 095c1ca8ec
Refactor notifications to redux (#6)
* feat: make new connections

refact: context groups | feat: area detection

and a bunch of small things. hate yourself for this massive commit

* refact: initial RTK setup for Notifications

* refact: removed Notification Context
2023-09-04 10:02:08 -05:00

17 lines
507 B
TypeScript

import { configureStore } from '@reduxjs/toolkit'
import notificationQueueSlice from './features/notifications/notificationQueueSlice'
import { setupListeners } from '@reduxjs/toolkit/dist/query'
export const store = configureStore({
reducer: {
notificationQueue: notificationQueueSlice,
},
middleware: (getDefaultMiddleware) => getDefaultMiddleware(),
})
export type RootState = ReturnType<typeof store.getState>
export type AppDispatch = typeof store.dispatch
setupListeners(store.dispatch)