Hello!
Sorry if it's been discussed or documented, but I could not find solution.
How to specify initial value of reducer in case of currying?
If on first @@redux/INIT run I don't do anything with draft, redux complains about returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state.. But if I do
some: produce((draft, action) => {
if (draft === undefined) {
return {};
}
}
redux throw the same error...
Using version 1.1.0, and I though that returning object from producers should already work, strange.
Hello!
Sorry if it's been discussed or documented, but I could not find solution.
How to specify initial value of reducer in case of currying?
If on first
@@redux/INITrun I don't do anything with draft, redux complains aboutreturned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state..But if I doredux throw the same error...
Using version
1.1.0, and I though that returning object from producers should already work, strange.