Closed lihbr closed 2 years ago
With some frameworks, HMR can behave differently and cause the simulator component to hard reload while developing, ultimately losing its state.
Leveraging bundler's HMR APIs
At first, I thought that maybe the simulator could save and recover its state from session storage, not sure this would play nicely.
Should not impact production as the simulator shouldn't be responsible for recovering its state in that environment.
Is your feature request related to a problem? Please describe.
With some frameworks, HMR can behave differently and cause the simulator component to hard reload while developing, ultimately losing its state.
Describe the solution you'd like
Leveraging bundler's HMR APIs
Describe alternatives you've considered
At first, I thought that maybe the simulator could save and recover its state from session storage, not sure this would play nicely.
Additional context
Should not impact production as the simulator shouldn't be responsible for recovering its state in that environment.