-
-
Notifications
You must be signed in to change notification settings - Fork 349
Does mobx-react produces reactions in Unmounted Components? #94
Comments
@jmaguirrei, if |
You can try placing |
@andykog Thanks, I found in one case those components were hidden because they are animated from 0 to 1 scale... But, I have another case that calls render() and I think they should not. For example, I have this (simplified) component tree: Main (observes and passes A & B)
'A' changes, Main is re-rendered, Header is re-rendered, but List is also re-rendered (I mean render is called but no DOM is changed). I can control List not to re-render with some 'ad-hoc' ShouldComponentUpdate, but I like to rely on mobx-react to do that. How could achieve that? |
Closing this, no evidence that unmounted components are rendered, thans for the whole explanation |
Removed misleading comments about forceUpdate. We have discovered, that this is happening because |
Hello
I noticed reactions in components that are not rendered in the screen.
I putted a
console.log
inrender()
function and get those logs.Even though this components are observers of data that has mutated, they are not rendered, so (I think) they should not react...
Is it possible to prevent this?
The text was updated successfully, but these errors were encountered: