We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
import { InitialState } from "@react-navigation/native"; import { createSlice, PayloadAction } from "@reduxjs/toolkit"; interface Auth { userId: number; AccessToken: string; } const initialState = { isLogin: false, userId: 0, AccessToken: "", }; export const GlobalSlice = createSlice({ name: "global", initialState: initialState, reducers: { addAToken(state, action: PayloadAction<string>) { state.AccessToken = action.payload; state.isLogin = true; }, addUserId(state, action: PayloadAction<number>) { state.userId = action.payload; }, }, });
질문이 있으면 언제든지 남겨주세요!
The text was updated successfully, but these errors were encountered:
No branches or pull requests
질문이 있으면 언제든지 남겨주세요!
The text was updated successfully, but these errors were encountered: