.update()
needed even though the render function gets correct data?
#1527
Labels
.update()
needed even though the render function gets correct data?
#1527
Not sure if this is related to the bevy of other issues regarding
.update
needing to be called without any indication of why.I noticed that this is happening with Redux as well, sometimes. It seems if the action is dispatched from a
.simulate
, all is well. But if you're just dispatching an action in code, you will need to callwrapper.update()
.Where this breaks down for me is that we can spy on something in the render function and see that it gets the new updated value, so why doesn't the original
wrapper
instance work?I've made a demo repo to check this out.
Current behavior
.update()
needs to be called after Redux state changes, even though we can assert that the change happens correctly in the component'srender
function.Expected behavior
.update()
does not need to be called.Your environment
API
Version
Adapter
The text was updated successfully, but these errors were encountered: