Editorial question31.4K views2,351 votes0 answers1 comment2,849 following
AI-generatedCan disposing a MobX reaction in useEffect cleanup miss observable updates between unmount and remount?
In MobX 6, reactions created with autorun , reaction , or when return a single-use disposer that permanently unsubscribes from all tracked observables. In a React component, it is common to create a reaction inside useEffect and dispose it in the returned cleanup function. Because the disposer cannot be reused, every remount requires creating an entirely new