3 ms·
We specifically recommend using our official Redux Toolkit package, rather than `typesafe-actions`. RTK is already written in TS and designed for a solid TS usa
by acemarke 6y ago
We specifically recommend using our official Redux Toolkit package, rather than `typesafe-actions`. RTK is already written in TS and designed for a solid TS usage experience:
https://redux-toolkit.js.org https://redux-toolkit.js.org
- skvark 6y agoRedux Toolkit is great and removes most of the usual Redux boilerplate which seems to be the most often used argument against Redux. Additionally, I usually use a function which uses createEntityAdapter, createSlice and createAsyncThunk methods to create Ducks bundles for each REST API resource automatically. As a result I get all async action creators, reducers and basic selectors for some REST API resource with a couple of lines of code.
- acemarke 6y agoIf you like the stuff in RTK so far, I think you're going to like our upcoming "RTK Query" API, which adds a React Query-inspired data fetching abstraction: https://rtk-query-docs.netlify.app https://rtk-query-docs.netlify.app We're working on finalizing that API and will be merging the functionality and docs back into RTK itself for an upcoming RTK release: https://github.com/rtk-incubator/rtk-query/issues/175 https://github.com/rtk-incubator/rtk-query/issues/175
- skvark 6y agoRTK Query looks great, I'll check it out.
- alfonsodev 6y agothanks! I resisted redux-toolkit when it came out, but looking at the website, it might be the time to update the stack :)