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
I understand that the future of react-test-render/shallow is uncertain but I thought I would log this issue anyway. It looks like components wrapped in React.memo will not re-render unless props changed. In our case the component is using the useState hook and updating state does not re-render when using wrapped in React.memo()
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contribution.
I understand that the future of
react-test-render/shallow
is uncertain but I thought I would log this issue anyway. It looks like components wrapped inReact.memo
will not re-render unless props changed. In our case the component is using theuseState
hook and updating state does not re-render when using wrapped inReact.memo()
react/packages/react-test-renderer/src/ReactShallowRenderer.js
Lines 621 to 627 in 54f6673
Contrived codesandox example:
https://codesandbox.io/s/sweet-field-ydm0c?fontsize=14&hidenavigation=1&module=%2Fsrc%2Findex.test.js&previewwindow=tests&theme=dark
The text was updated successfully, but these errors were encountered: