Reproduction on Stackblitz
https://stackblitz.com/edit/vitejs-vite-v9qnbh?file=src%2Fmain.tsx
- Switching from a nested-molecule route to a num-molecule route results in a new value being created.
- Other route-switch types do not result in a new value.
Possibly related to #58 and/or #64
I am aware of the workaround of using the molecule in a root component. I want the molecule to be unmounted if I visit a different route that doesn't use it instead though.
Edit: Here's a simpler reproduction with no react-router https://stackblitz.com/edit/vitejs-vite-pqhs2r?file=src%2Fmain.tsx
Reproduction on Stackblitz
https://stackblitz.com/edit/vitejs-vite-v9qnbh?file=src%2Fmain.tsxPossibly related to #58 and/or #64
I am aware of the workaround of using the molecule in a root component. I want the molecule to be unmounted if I visit a different route that doesn't use it instead though.
Edit: Here's a simpler reproduction with no react-router https://stackblitz.com/edit/vitejs-vite-pqhs2r?file=src%2Fmain.tsx