Conversation
* Fix missing name field in type test * Include provided case reducers in createSlice output - Added `caseReducers` field to the createSlice return object - Added test and type test for returned case reducer - Removed "Enhanced" terminology from types, and replaced with "CaseReducerWithPrepare" and "CaseReducerDefinition" - Restructured logic to only loop over reducer names once, and check case reducer definition type once per entry * Add type tests for correct case reducer export inference * Rewrite caseReducers types for correct inference of state + action * Add type test for reducers with prepare callback * Fix type inference for actions from reducers w/ prepare callbacks * Clean up type names and usages * Use a generic State type in ActionForReducer * Re-switch Slice generics order
|
Deploy preview for redux-starter-kit-docs ready! Built with commit 555d9b1 https://deploy-preview-208--redux-starter-kit-docs.netlify.com |
* Change default createAction payload type to void to make it required * Fix createAction type tests per review
* Update basic tutorial with createSlice changes * Update intermediate tutorial with createSlice changes * Update advanced tutorial with createSlice changes * Change existing commit links to point to reduxjs org repos
|
Okay, so far we've got:
I'd like to tweak a couple bits of the Other than that, this may be close to being ready. Per mention in #213 , I'm going to have to publish 0.8 before I can rewrite the tutorial commits and update the commit links. I'd like to have the build changes from #212 too if possible, but not sure how long that work will take, so that can be a later release (0.8.1 or 0.9 or something). |
|
Awright, no one's had anything to say. I'm gonna merge this in, put out 0.8, and try to polish up the tutorial repos. |
WIP as we try to make sure everything's in place for 0.8.