We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 24fc343 commit fe418eeCopy full SHA for fe418ee
examples/query/react/kitchen-sink/src/features/auth/authSlice.ts
@@ -24,6 +24,7 @@ const slice = createSlice({
24
console.log('fulfilled', action)
25
state.user = action.payload.user
26
state.token = action.payload.token
27
+ state.isAuthenticated = true
28
})
29
.addMatcher(postsApi.endpoints.login.matchRejected, (state, action) => {
30
console.log('rejected', action)
0 commit comments