My question will be based on this example: https://codesandbox.io/s/github/reduxjs/redux-toolkit/tree/master/examples/query/react/authentication-with-extrareducers?from-embed=&file=/src/app/services/auth.ts
Without knowing how to access the data fetched from RTK query using useSelector
, I wonder why do you need to create authSlice and store the token into the AuthState
, if RTK query put all the data into store/state?
Thank you in advance