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

Named layouts for +error.svelte #6014

Closed
madeleineostoja opened this issue Aug 18, 2022 · 1 comment
Closed

Named layouts for +error.svelte #6014

madeleineostoja opened this issue Aug 18, 2022 · 1 comment

Comments

@madeleineostoja
Copy link

madeleineostoja commented Aug 18, 2022

Describe the problem

I'm in the middle of migrating a very large Sveltekit project to the new routing system, and I'm trying to take advantage of sibling layout inheritance, by putting low level stuff (data loading, base metadata, auth guards, etc) that was previously duplicated between layouts in a default layout and then using named layouts for the layouts I had.

This was working great until I came to +error.svelte, when I try to use my new named layout (layoutlayout-root) kit throws an error about + being a reserved character.

Describe the proposed solution

+error should be able to use named layouts, eg: +error@root.

Alternatives considered

Go back to sharing data loading etc with a higher order function, rather than the "sveltekit" way with layout inheritence.

Importance

nice to have

Additional Information

No response

@dummdidumm
Copy link
Member

Duplicate of #4582

@dummdidumm dummdidumm marked this as a duplicate of #4582 Aug 18, 2022
@dummdidumm dummdidumm closed this as not planned Won't fix, can't repro, duplicate, stale Aug 18, 2022
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

2 participants