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

Docs on svelte/action uses example of legacy mode #15588

Closed
fel1x-developer opened this issue Mar 22, 2025 · 1 comment
Closed

Docs on svelte/action uses example of legacy mode #15588

fel1x-developer opened this issue Mar 22, 2025 · 1 comment

Comments

@fel1x-developer
Copy link

Describe the bug

The use: directive docs says

Legacy mode
Prior to the $effect rune, actions could return an object with update and destroy methods, where update would be called with the latest value of the argument if it changed. Using effects is preferred.

However there is no mention of the usage of $effect rune in svelte/action docs.

Reproduction

N/A

Logs

N/A

System Info

N/A

Severity

annoyance

@dummdidumm
Copy link
Member

Actions in somewhat of a weird spot right now since they may at some point be deprecated in favor of attachments - the weird thing is, we might add $effect there (like, "use this instead of the update/destroy hooks" which nudges people to update their actions only to have to do that again when attachments land). For that reason I think it's ok that $effect is not mentioned there.

@dummdidumm dummdidumm closed this as not planned Won't fix, can't repro, duplicate, stale Mar 31, 2025
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

3 participants