Add support for keepAlive #1949
Labels
enhancement
Possible enhancement
help/PR welcome
Help/Pull request from contributors to fix the issue is welcome
level: intermediate
Feature request
Support equivalent of
@computed({keepAlive: true})
.Note that
keepAlive
frommobx-utils
isn't the same. Since it causes the computed value to always be re-evaluated even there's no other observers.Is your feature request related to a problem? Please describe.
The lack of computed support make the friction of migrating from MobX to MST a lot higher.
And given that MST use a tree-like structure for managing states, arguably the chance of memory leak is even lower.
Are you willing to (attempt) a PR?
The text was updated successfully, but these errors were encountered: