Skip to content

Commit fe418ee

Browse files
committed
fix/kitchen-sink-isAuthenticated: fixed isAuthenticated state change on login fullfilled
1 parent 24fc343 commit fe418ee

File tree

1 file changed

+1
-0
lines changed
  • examples/query/react/kitchen-sink/src/features/auth

1 file changed

+1
-0
lines changed

examples/query/react/kitchen-sink/src/features/auth/authSlice.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ const slice = createSlice({
2424
console.log('fulfilled', action)
2525
state.user = action.payload.user
2626
state.token = action.payload.token
27+
state.isAuthenticated = true
2728
})
2829
.addMatcher(postsApi.endpoints.login.matchRejected, (state, action) => {
2930
console.log('rejected', action)

0 commit comments

Comments
 (0)