Skip to content

Provide a way for layouts to determine if current page is an error page #598

@benmccann

Description

@benmccann

In Sapper we did sveltejs/sapper#1498

Suggestion from Rich for SvelteKit:

Given that it only applies to the root layout I think I'd prefer that we pass the error (and possibly status) as a prop. It doesn't belong on the page store

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature / enhancementNew feature or requesthelp wantedPRs welcomed. The implementation details are unlikely to cause debate

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions