mobxjs / mobx-react

React bindings for MobX

Home Page:https://mobx.js.org/react-integration.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

observer doesn't re-render functional components

xarety opened this issue · comments

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

Please follow the migration guide first: https://mobx.js.org/migrating-from-4-or-5.html

Thanks!