Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Unable to update story state through actions #265

Closed
ACERposS opened this issue Jan 17, 2025 · 2 comments
Closed

[Bug] Unable to update story state through actions #265

ACERposS opened this issue Jan 17, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@ACERposS
Copy link

Describe the bug

Following the examples in Interactions.stories and Example.stories it seems as though any updates to Story state should be reflected in the UI, regardless of whether the state is modified via a play callback or UI action.

Neither of these patterns seems to be working currently- the UI never updates. This makes it impossible to author interactive stories (although it is still possible to write interaction tests if the only validation is that callbacks are called as expected).

Environment

  • version: 5.0.0-next.21
  • Svelte version: 5.17.1
  • Storybook version: 8.4.7
  • @storybook/svelte version: 8.4.7
  • OS: Windows 10 Enterprise
  • Node.js version: 21.6.2
  • NPM version: 10.4.0
  • Browser (if applicable): Firefox
  • Browser version (if applicable): 134

Additional context

Possibly related to #164

@ACERposS ACERposS added the bug Something isn't working label Jan 17, 2025
@xeho91
Copy link
Collaborator

xeho91 commented Jan 17, 2025

Do you mind to please elaborate more on what you mean by "Story state should be reflected in the UI"?

I'm testing those examples in the latest PR:

  1. Example.stories - https://6042cb92fd1bb200234586ee-xqrvztbabm.chromatic.com/?path=/story/examples-button--primary
  2. Interaction.stories - https://6042cb92fd1bb200234586ee-xqrvztbabm.chromatic.com/?path=/story/tests-addons-interactions--default

and unless I misunderstood the issue, I don't see the problem.

@JReinhold
Copy link
Collaborator

This was a bug introduced in Svelte 5.17.0 and fixed in 5.17.3, it seems like you're running 5.17.1.

Updating your Svelte version will fix this.

https://github.com/sveltejs/svelte/releases/tag/svelte%405.17.3

Duplicate of storybookjs/storybook#30223

@JReinhold JReinhold closed this as not planned Won't fix, can't repro, duplicate, stale Jan 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants