It’s hard to imagine going back to the old ways once you try Fast Refresh. MobX-State-Tree just needs a little help to work with it properly. Here’s a simple hook that preserves your app’s state whenever you modify store code or dependencies: Disclaimer: State is not preserved when you make changes that are incompatible with the previous snapshot, such as changing the type of a model property. This occurs pretty rarely in practice, however.