Skip to content

v0.8.2

Compare
Choose a tag to compare
@andywhite37 andywhite37 released this 06 Feb 23:33
· 27 commits to master since this release

πŸ› Bug fixes

  • 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.