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
When I built the first version of Rodux, the best way to respond to changes outside of something like React/Roact wasn't very well understood.
I think that we understand now that the best way to respond to changes in the Rodux store is to keep the last value you had, and on update, compare the new store state with it. In short, you should ignore the second argument of the changed event!
This issue covers two gripes:
I want to remove the second value passed by the changed signal because it's a bad practice
I want to fix the naming of the changed signal to indicate that it's a signal (onUpdate maybe?)
The text was updated successfully, but these errors were encountered:
We could also (re)introduce the old subscription approach, a method called subscribe that returns a disconnection function. This might be the simplest approach, and avoids requiring an additional API (a signal object).
When I built the first version of Rodux, the best way to respond to changes outside of something like React/Roact wasn't very well understood.
I think that we understand now that the best way to respond to changes in the Rodux store is to keep the last value you had, and on update, compare the new store state with it. In short, you should ignore the second argument of the
changed
event!This issue covers two gripes:
changed
signal because it's a bad practiceonUpdate
maybe?)The text was updated successfully, but these errors were encountered: