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]: SvelteKit mocks doesn't support the $app/state module #30209

Open
JReinhold opened this issue Jan 7, 2025 · 0 comments
Open

[Bug]: SvelteKit mocks doesn't support the $app/state module #30209

JReinhold opened this issue Jan 7, 2025 · 0 comments

Comments

@JReinhold
Copy link
Contributor

JReinhold commented Jan 7, 2025

Describe the bug

SvelteKit 2.12.0 introduced a new built-in module, $app/state, intended for Svelte 5 usage.

It functions similarly to the existing $app/stores module, but is based on runes instead of stores.

We have an (experimental) API that allows users to mock these SvelteKit-level built-in modules (originally contributed by @paoloricciuti), and we need to extend that to support $app/state as well. See:

Additional context

The mocks lives in https://github.com/storybookjs/storybook/blob/next/code/frameworks/sveltekit/src/mocks/app

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant