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
This release reverts the change made in v0.8.1 to add the useRef wrapper around the reducer function in ReludeReact.Reducer.useReducer. The ref wrapper was added to try to prevent unmanaged side effects from running multiple times in the reducer function, but it also had the undesired side effect of causing prop updates to be invisible to the reducer function. We've also learned that React.useReducer makes no guarantees about how often the reducer function will be run, and it's expected that the function will run more than once. Because of this, one should avoid using any unmanaged side-effects in the reducer function, and should instead use controlled side effects via the update constructors like SideEffect, UpdateWithSideEffect, IO, etc.