Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.
This repository was archived by the owner on Jan 11, 2023. It is now read-only.

Detect static routes and avoid re-render #8

Open
@Rich-Harris

Description

@Rich-Harris

In a lot of cases (e.g. this about page), there's no need to hydrate the page because nothing is interactive. We can just wait for the first navigation event.

This is perhaps something that belongs in Component.render(...):

const { html, head, css, interactive } = Component.render(data);

// if `interactive === false`, set `window.SAPPER_IS_INTERACTIVE = false`,
// then we don't bother with the initial `navigate(new URL(window.location))`

Metadata

Metadata

Assignees

No one assigned

    Labels

    svelteThings we can't implement without changes to Svelte

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions