tweakpane / use-tweaks

🎛️ Tweak React components with Tweakpane
https://codesandbox.io/s/use-tweaks-example-58e02
MIT License
768 stars 23 forks source link

Tweaks are lost when unmounting component #24

Closed gsimone closed 3 years ago

gsimone commented 3 years ago

Since state is stored in the hook, tweaks are lost when unmounting the component.

To reproduce: