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

Svelte 5: Rune to Store and vice versa #12431

Open
david-plugge opened this issue Jul 14, 2024 · 3 comments
Open

Svelte 5: Rune to Store and vice versa #12431

david-plugge opened this issue Jul 14, 2024 · 3 comments

Comments

@david-plugge
Copy link

Describe the problem

Converting stores to runes ist not trivial If you want to keep the StartStopNotifier functionality. An example would be converting the page store in SvelteKit into a rune.

Describe the proposed solution

Provide a new rune that converts stores to runes and vice versa.

Importance

nice to have

@Not-Jayden
Copy link
Contributor

@david-plugge
Copy link
Author

Im pretty sure that implementation does not repect the StartStopNotifier. It simply subscribes to the store on creation.

@7nik
Copy link

7nik commented Jul 17, 2024

Why do you need to convert stores to runes at all?
Stores reactivity still works in Svelte 5 and is even detected as a dependency in $effect.

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

No branches or pull requests

3 participants