marked ou the project
This commit is contained in:
1 parent
0efb94a37c
commit
d2820757b9
25 files changed
+909
-428
No files matched your search
@@ -0,0 +1,6 @@
|
||||
import { useDispatch, useSelector } from 'react-redux'
|
||||
import type { RootState, AppDispatch } from '../store/store'
|
||||
import type {TypedUseSelectorHook} from 'react-redux'
|
||||
|
||||
export const useAppDispatch = () => useDispatch<AppDispatch>()
|
||||
export const useAppSelector: TypedUseSelectorHook<RootState> = useSelector
|
||||
@@ -0,0 +1 @@
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
import { configureStore } from '@reduxjs/toolkit'
|
||||
//import requestReducer from './slices/slice'
|
||||
|
||||
export const store = configureStore({
|
||||
reducer: {
|
||||
//request: requestReducer
|
||||
}
|
||||
});
|
||||
|
||||
(window as any).store = store;
|
||||
|
||||
export type RootState = ReturnType<typeof store.getState>;
|
||||
export type AppDispatch = typeof store.dispatch;
|
||||
Reference in new issue
Block a user