https://stackblitz.com/edit/vitejs-vite-3xmxag?file=src%2FApp.js
it does not work when a prop changes. isn’t there an easier way to fix this?