Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | 6x 6x 6x 6x | import { configureStore } from "@reduxjs/toolkit"; import brandStoreReducer from "../slices/brandStoreSlice"; import currentStoreReducer from "../slices/currentStoreSlice"; import snapsSelector from "../slices/snapsSlice"; import membersSelector from "../slices/membersSlice"; import invitesSelector from "../slices/invitesSlice"; import { useDispatch } from "react-redux"; function configureAppStore() { const store = configureStore({ reducer: { brandStores: brandStoreReducer, currentStore: currentStoreReducer, snaps: snapsSelector, members: membersSelector, invites: invitesSelector, }, }); return store; } const store = configureAppStore(); export type RootState = ReturnType<typeof store.getState>; export type AppDispatch = typeof store.dispatch; export const useAppDispatch = () => useDispatch<AppDispatch>(); export { store }; |