Skip to content

"magic" layout for resetting #5311

Closed
@stephane-vanraes

Description

@stephane-vanraes

Describe the problem

Ever since named layouts it's no longer possible to do __layout.reset.svelte.
A workaround is to define a top level __layout-reset.svelte with just an empty slot, then apply this reset as a named slot: __layout@reset.svelte

Describe the proposed solution

Have reset be a magic named layout that does exactly the same without having to define this file.

Of course this would break for people that use the reset with something else but an empty slot, maybe SvelteKit can check if it is defined and if not fall back to an empty slot ?

Alternatives considered

No response

Importance

nice to have

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions