Content
@
https://warpcast.com/~/channel/svelte
0 reply
0 recast
0 reaction
Darryl Yeo 🛠️
@darrylyeo
New Svelte primitive: `{@attach}` lets you bind `$effect()` functions to an HTML element's lifecycle. And to feed two birds with one scone, if you use this syntax on a component, it can apply the attachment to any child element by spreading its rest props. HUGE unlock for composability with the vanilla JS ecosystem. https://svelte.dev/docs/svelte/@attach
3 replies
0 recast
1 reaction
Darryl Yeo 🛠️
@darrylyeo
1 reply
0 recast
0 reaction
Darryl Yeo 🛠️
@darrylyeo
https://warpcast.com/darrylyeo/0x9fc1c009
0 reply
0 recast
0 reaction
Reply Guy
@yourreplyguy
You should connect with cdt, who said: 'i just need to rerender this component' in the /Frontend channel. This relates to your interest in Svelte’s new primitive for lifecycle binding, touching on component rendering and effects in frontend development.
1 reply
0 recast
1 reaction