Add support for React transitions #4690
ericmasiello
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
From my understanding of the react-mobx-lite source code, fundamentally, the
observer()hoc triggers a re-render of the React component it wraps by observing state changes within the Mobx lifecycle and then invoking auseState()setter.React transitions (useDeferredValue, useTransition) are, in part, designed to signal lower-priority updates to a React component that can even be discarded. I'm curious whether the MobX maintainers see a path toward supporting transitions as a first-class capability of the Mobx/React integration?
All reactions