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

Layouts not exists for svelte-spa-router? #321

Open
VanRoberMore opened this issue Apr 13, 2024 · 6 comments
Open

Layouts not exists for svelte-spa-router? #321

VanRoberMore opened this issue Apr 13, 2024 · 6 comments

Comments

@VanRoberMore
Copy link

Can't you use layouts directly in routes? Components also have problems with wrap() routes. I couldn't find a single mention of layouts in the documentation.

@ItalyPaleAle
Copy link
Owner

Could you give an example of what you'd like to do?

@VanRoberMore
Copy link
Author

VanRoberMore commented Apr 13, 2024 via email

@ItalyPaleAle
Copy link
Owner

I think what you may be looking for is nested routers. I wouldn't use slots here, just routers nested into each other!

https://github.com/ItalyPaleAle/svelte-spa-router/blob/main/Advanced%20Usage.md#nested-routers

@VanRoberMore
Copy link
Author

VanRoberMore commented Apr 14, 2024 via email

@ItalyPaleAle
Copy link
Owner

I am not familiar with the concept of layouts, sorry

@carbogninalberto
Copy link
Collaborator

@VanRoberMore something like this: https://svelte.dev/repl/521a64b02b0b4839bfcc79a4e641471d?version=4.2.14 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants