Skip to content

[SOLVED] issue in listing 20-9 customReducerEnhancer #105

@ahmedtolan2019

Description

@ahmedtolan2019

I've found issue with code in listing and i give it a try by changing the initialState = null from being null to initialState = initialData and it works correctly

also another change works by just changing return initialState to return initialData in this snippet:

return (storeData, action) => {
 if (action.type === STORE_RESET && initialData != null) {
 return intialState; //change this to initialData
 } else {
...

and i want to say thank you for this amazing book, i've learned a lot

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions