Component stops updating once devtools inspects it
Closed this issue · 1 comments
xaviergonz commented
I have a weird issue where when a component starts to be inspected it will stop to update.
- Open the sandbox live window
- Click on the Increment Y (State) button of the top component
- the sum increases (ok)
- open dev tools
- highlight the first "MyComponent" inside "App"
- click the button again
- the component won't pick up state increases and won't update anymore (wrong)
- if the props/context is changed are clicked (the buttons below) then the state change will be picked up, but still changes to the state only won't get the component to update
Sandbox: https://stackblitz.com/edit/mobx-react-component-sample?file=package.json
Live window of the sandbox: https://mobx-react-component-sample.stackblitz.io/
xaviergonz commented
Closing, managed to work around it