You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that when a reducer returns not a new object, but a reference to the same object it received, that reduction is ignored and sources.state.stream does not emit. Am I right about this?
I'm OK with this behavior, as long as it is documented. And perhaps a good exception would help there, as well.
"The following reducer returned a reference to the same state object that it had received. That is not supported. Please modify the reducer to return a new state object."
The text was updated successfully, but these errors were encountered:
mightyiam
changed the title
New state ignored when same reference returned from reducer
New state ignored when reducer returned reference to same state it had received
Jun 30, 2019
It seems that when a reducer returns not a new object, but a reference to the same object it received, that reduction is ignored and
sources.state.stream
does not emit. Am I right about this?I'm OK with this behavior, as long as it is documented. And perhaps a good exception would help there, as well.
"The following reducer returned a reference to the same state object that it had received. That is not supported. Please modify the reducer to return a new state object."
Pull request welcome?
Versions of packages used:
The text was updated successfully, but these errors were encountered: