You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i'm using {#each} to render a list,and i wanna process the new generated dom element after one item has processed finish,but now there maybe no way to do this
Describe the proposed solution
add a callback attr to {#each} to execute function and cna get all new generated dom
Importance
i cannot use svelte without it
The text was updated successfully, but these errors were encountered:
There is no guarantee that any DOM will be generated at all.
Also, #each is fairly bloated already ({#each expression as name, index (key)}) and adding additional stuff to it would not improve the situation.
If you need access to DOM elements, you can define an action on a wrapper element in the #each or use bind:this (you would need to bind to an array/object via an index/key).
Describe the problem
i'm using {#each} to render a list,and i wanna process the new generated dom element after one item has processed finish,but now there maybe no way to do this
Describe the proposed solution
add a callback attr to {#each} to execute function and cna get all new generated dom
Importance
i cannot use svelte without it
The text was updated successfully, but these errors were encountered: