Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Are there any benefits for library authors to switch from Actions to Attachments?#16432

lts20050703 started this conversation inGeneral
Discussion options

I am usingsvelte-dnd-action, and recently I asked the author if there's any plans to switch from Actions to Attachments. The author commented as titled, as well as pointing out that Svelte already providesfromAction for people who need it, though they aren't sure why would anyone need to do so in the first place.

So if a library exist before Attachments and works fine using the Actions system, are there any benefits for library authors to switch from Actions to Attachments?

isaacHagoel/svelte-dnd-action#655

You must be logged in to vote

Replies: 1 comment 1 reply

Comment options

Actions were developed in Svelte 1.58.2 (#1247) and haven't really evolved since.
Svelte 5's changes didn't really fit with actions, either; the most you could change was tack on an$effect instead of returningupdate anddestroy callbacks. On the other hand, attachments were built using the years of experience with actions— they kept the good parts in mind and improved (or solved!) the bad parts. Attachments have specifically been built for runes and the future. They are composable, providing a simpler, more functional approach to reactively working with the DOM. For (a lot) more information, see the PR for attachments (#15000).

You must be logged in to vote
1 reply
@lts20050703
Comment options

I'm sorry, I get what you're saying, but I'm asking that for library authors of a library that was written with Actions and already works fine with the Actions system, are there any benefits for them (or for the library) to rewrite and switch to Attachments?

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
General
Labels
None yet
2 participants
@lts20050703@Ocean-OS

[8]ページ先頭

©2009-2025 Movatter.jp