Update model layer docs with more strict rules around mobx.action
and async/Promise functions
#5033
Labels
mobx.action
and async/Promise functions
#5033
Wrapping an async function with
mobx.action
can hide mobx reactivity bugs.mobx.action
(andflow
,runInAction
,untracked
, etc.) should be used conservatively in places where a user causes a state mutation, or when an async request (started by a user) finishes and state must be mutated.The text was updated successfully, but these errors were encountered: