-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Milestone
Description
v1.3.0 is shaping up to be a somewhat sizeable set of changes:
- Adding
createAsyncThunk
andcreateEntityAdapter
- Porting
redux-immutable-state-invariant
over - Dropping support for TS <3.5
- Possibly dropping or cloning the
redux-devtools-extension
package to see if we can improve shakeability? (or maybe things can get improved upstream) - See if Immer drops a new version that tree-shakes better and we can use
Also, we should totally try to use https://github.com/mweststrate/import-size to help improve our shaking and bundle size.
Sketch of tasks to do:
- Code
- Port
redux-immutable-state-invariant
- Look into porting
redux-devtools-extension
- Any further desired tweaks to
createAsyncThunk
andcreateEntityAdapter
-
createAsyncThunk
error handling finalized and documented
-
- Actually wait for Immer 6 release ( feature: optimize Immer bundling immerjs/immer#536 , Possible improvements to tree shaking and bundle size immerjs/immer#500 , add 5.0.2 type definitions as fallback for TS<3.7 immerjs/immer#541 )
- Review bundle size info and try to shrink things
- Export additional entity types for external usage
- Port
- Write at least one small-ish example app, both to confirm how the API feels in practice and to act as an example
- Docs
- Add usage guides for new APIs
-
createAsyncThunk
: data fetching in general, standard Redux patterns, how this simplifies -
createEntityAdapter
: normalization in general, a couple recipes for how you could do normalizing yourself and then use these methods to process (like callingnormalizr
in an action creator, and having a slice check foraction.payload.entities.users
and process accordingly)
-
- Polish API reference pages
- Cover new APIs in "Usage with TypeScript" page
- Consider reworking tutorials to use new APIs?
- Update README and other docs pages to add mentions of new APIs and revise information (per README, we do now have something for entities, just not relationships...)
- Separate docs pages for the immutable and serialization middleware
- Add usage guides for new APIs
- Update CRA templates to point to
rtk@^1.3.0
Ongoing v1.3.0 integration work is in this PR:
varHarrie, hieutdo, mcchrish, florianMo, AleksBeliun and 1 morevarHarrie and jsbeckr
Metadata
Metadata
Assignees
Labels
No labels