Overhauled redux states and separated auth state from user info state

This commit is contained in:
Keannu Christian Bernasol 2023-07-06 20:56:19 +08:00
parent acfb28ce3c
commit 9a246b45e1
6 changed files with 65 additions and 37 deletions

View file

@ -1,9 +1,11 @@
import { configureStore } from "@reduxjs/toolkit";
import AuthReducer from "../slices/AuthSlice/AuthSlice";
import UserReducer from "../slices/UserSlice/UserSlice";
const store = configureStore({
reducer: {
auth: AuthReducer,
user: UserReducer,
},
});