Tresjs / leches

🍰 Tasty GUI for Vue controls
https://tresleches.tresjs.org/
MIT License
28 stars 5 forks source link

Leches controls multiply when page is revisited in Cientos docs #62

Closed andretchen0 closed 10 months ago

andretchen0 commented 10 months ago

Description

In Cientos docs, when navigating back to a page with Leches controls, the controls are duplicated – and reduplicated on every subsequent visit until the page is reloaded.

https://github.com/Tresjs/leches/assets/20469369/88e6e989-8e86-4e87-bda6-d7368d59a78a

Reproduction

Steps to reproduce the behavior:

  1. Go to Lensflare
  2. See 1 control for scale
  3. Click on 'MouseParallax' in the left-hand menu
  4. Click on 'Lensflare' in the left-hand menu
  5. See 2 controls for scale
  6. Click on 'MouseParallax' in the left-hand menu
  7. Click on 'Lensflare' in the left-hand menu
  8. See 3 controls for scale

Expected behavior

The controls should not be duplicated.

alvarosabu commented 10 months ago

It also happens with HMR, I was about to open a ticket about it. Thanks @andretchen0 for doing it, gonna work on it