Skip to content

[Feature?]: disable ssr for some pages #1934

Description

@huseeiin

Duplicates

  • I have searched the existing issues

Latest version

  • I have tested the latest version

Summary 💡

currently we can do this:

function Home() {
  return <h1>Home</h1>;
}

import { clientOnly } from "@solidjs/start";

export default clientOnly(() => Promise.resolve({ default: Home }));

but this doesn't work the same as ssr: false
in ssr: false, initial data fetching happens on the client
with clientOnly data is initially brought by the server

Examples 🌈

No response

Motivation 🔦

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions