Svelte developers may be wondering about the best way to pass multiple components into a layout's render function at different routing sub-levels. A recent question on Dev.to highlights the issue, seeking an alternative to using named slots in Svelte 4. The user currently uses writable stores and context methods to achieve this, but finds their approach "circuitous" and thinks there must be a more direct way.

Source: https://dev.to/thomaschoi721/does-svelte5-have-multi-render-equivalent-to-ver4s-multi-named-slot-use-inside-layoutsvelte-4op7

Reply to this note

Please Login to reply.

Discussion

No replies yet.