Closed jmattheis closed 2 years ago
Going through and cleaning up issues. Looking at this, I think everything is behaving as expected:
To see this for yourself, just add a console.log('render mycomp' ) to both the WrapChildren and Subcomponent, and you'll see which is re-rendering on text box change/action call. React does not re-render Sub even though it re-renders Wrap.
Closing this issue but reopen if you disagree?
In the example below overmind won't rerender
SubComponent
on state changes. When adding auseOvermindState
all works fine. I guess it is because of theWrapChildren
component. Overmind rerenders theWrapChildren
component but this dosen't updatechildren
from the parent component which results in outdated values.In the example / CodeSandbox the it is not possible to write in the text input, because it doesn't receive the newer values.
CodeSandbox: https://codesandbox.io/s/overmind-no-react-rerender-k98d4