Open Floppy012 opened 2 years ago
https://github.com/Floppy012/vue3-useslots-hmr
npm install
npm run dev
data-test
computed
useSlots
compute should be re-executed to get the new values
compute
compute isn't re-executed causing the child element not to update properly
System: OS: Linux 5.4 Ubuntu 20.04.3 LTS (Focal Fossa) CPU: (12) x64 Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz Memory: 10.77 GB / 31.29 GB Container: Yes Shell: 5.0.17 - /bin/bash Binaries: Node: 16.14.2 - ~/.nvm/versions/node/v16.14.2/bin/node Yarn: 1.22.18 - ~/.nvm/versions/node/v16.14.2/bin/yarn npm: 8.5.0 - ~/.nvm/versions/node/v16.14.2/bin/npm Browsers: Brave Browser: 97.1.34.80 Firefox: 100.0
When changing the text using a reactive variable it seems to work properly.
HMR only rerender template, not triggerEffects.
triggerEffects
Link to minimal reproduction
https://github.com/Floppy012/vue3-useslots-hmr
Steps to reproduce
npm install
andnpm run dev
data-test
-div multiple times (it sometimes works properly and sometimes it doesn't)computed
gets executed)useSlots
incomputed
What is expected?
compute
should be re-executed to get the new valuesWhat is actually happening?
compute
isn't re-executed causing the child element not to update properlySystem Info
Any additional comments?
When changing the text using a reactive variable it seems to work properly.