-
Hi,
And having the state: In the past I've used to use some generic middleware (in
And then I could query it with a selector for any use case I wanted. The same tree exists for error states. Looking at redux-toolkit and the createAsyncThunk, I can't help but think -- there must be something like that already, rather than hand-coding I've:
Any ideas? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Well, the point is that we are shipping RTK Query which uses createAsyncThunk do do exactly this. If you don't want to use RTKQ, you essentially have to build that part yourself. |
Beta Was this translation helpful? Give feedback.
Well, the point is that we are shipping RTK Query which uses createAsyncThunk do do exactly this. If you don't want to use RTKQ, you essentially have to build that part yourself.