Open shaniqwa-drm opened 7 months ago
Not sure of the relevance but I experienced this when updated my project from Vue 2/ Storybook 7 --> Vue 3/Storybook 8.3. We had instances were we passed new values to props when another arg is changed. I realized that in the new vue3 set up, I need to wrap the update in a watcher to resolve this. Video recording of the issue we had: https://www.awesomescreenshot.com/video/32229387?key=be636f8a868c96d2d4886e871232d0de
Original code:
setup() {
if (args.alert) {
args.alert['type'] = args.toggleAlertType;
}
return { args };
},
template: '<BaseAlert v-bind="args" />'
Solution:
setup() {
watch(
() => args.toggleAlertType,
(updatedAlert) => {
if (args.alert) {
args.alert['type'] = updatedAlert;
}
}
);
return { args };
},
Describe the bug
When I change the controls, nothing happens. This issue started after migration from v6 to v7. Now I'm on the latest v8, all my dependencies are up-to-date, and this issue remains.
https://github.com/storybookjs/storybook/assets/124711028/fc0c797d-9a66-452d-a740-f68b21622eea
sharing my config and preview settings:
main.ts
preview.js
:To Reproduce
Unfortunately, I don't know how to reproduce this issue. I'm sure a new, small project from scratch will work, but I guess something in the process of migrating between different version broke the feature.versions
System
Additional context
addon-essentials
node_modules
andyard.lock
and install again