observer doesn't re-render functional components
xarety opened this issue · comments
Denis Gordeev commented
Intended outcome
Functional component re-render after observable property change.
Actual outcome
Functional component doesn't react to observable property change.
How to reproduce the issue
https://codesandbox.io/s/mobx-react-7x-1qnp6?file=/src/App.tsx
Michel Weststrate commented
Please follow the migration guide first: https://mobx.js.org/migrating-from-4-or-5.html
Denis Gordeev commented
Thanks!