does redux toolkit include any function to automatically generate reducers for thunks? #1905
Replies: 3 comments 9 replies
-
Nothing specific, no. The closest would be the CRUD reducers from However, that is the whole purpose of RTK Query - to automatically manage all the data fetching for you, including all the loading state: |
Beta Was this translation helpful? Give feedback.
-
I am a bit confused here. If firebase would already be tracking your cache for you in a manner that you could use it, you would not need Redux at all here, or am I wrong? |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Hello, thanks for the toolkit. The type safety is the best thing so far.
I noticed that I have a lot of similar reducers for async thunks to handle pending, error and fulfilled states.
Before I add my own abstraction I wanted to ask if this toolkit has anything similar.
Regards
Beta Was this translation helpful? Give feedback.
All reactions