get lessons list
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { configureStore } from '@reduxjs/toolkit';
|
||||
import { TypedUseSelectorHook, useSelector } from 'react-redux';
|
||||
|
||||
import { api } from './api/api';
|
||||
import { userSlice } from './slices/user';
|
||||
@@ -13,4 +14,6 @@ export const createStore= (preloadedState = {}) => configureStore({
|
||||
getDefaultMiddleware().concat(api.middleware),
|
||||
});
|
||||
|
||||
export type Store = ReturnType<ReturnType<typeof createStore>['getState']>;
|
||||
export type Store = ReturnType<ReturnType<typeof createStore>['getState']>;
|
||||
|
||||
export const useAppSelector: TypedUseSelectorHook<Store> = useSelector;
|
||||
|
||||
Reference in New Issue
Block a user