-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Allow layout reset without __layout.reset.svelte #4103
Comments
Related to #3832 |
Note that I'd assume it's the latter (if you have a Also worth considering would be whether any shadow endpoints would need to be renamed to |
or maybe: <script context="module">
export const layout = false
</script> |
Error: __layout.reset has been removed in favour of named layouts: https://kit.svelte.dev/docs/layouts#named-layouts |
Describe the problem
Let's say we need
/login
to not inherit root layout from__layout.svelte
. To do this one needs to createlogin
folder with__layout.reset.svelte
andindex.svelte
:This feels like a lot of noise for a one page layout reset. It gets more frustrating when there are many such pages.
Describe the proposed solution
I propose to allow
.reset.svelte
to reset the layout without the need of__layout.reset.svelte
. The/login
path described above would be implemented simply like this:Alternatives considered
One can put together all pages needing a reset in folder with layout reset:
This means that the paths will be
/user/login
and/user/signup
, not the desired/login
and/signup
Importance
would make my life easier
Additional Information
No response
The text was updated successfully, but these errors were encountered: