Skip to content

[Content]: clientOnly can also be used for pages #1288

@thomasbuilds

Description

@thomasbuilds

📚 Subject area/topic

clientOnly

📋 Page(s) affected (or suggested, for new content)

https://docs.solidjs.com/solid-start/reference/client/client-only

📋 Description of content that is out-of-date or incorrect

clientOnly can be used for disabling ssr on a specific pages too, not just for components

// routes/index.tsx
export default clientOnly(async () => ({ default: HomePage }));

function HomePage() {

🖥️ Reproduction in StackBlitz (if reporting incorrect content or code samples)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    pending reviewAwaiting review by team members.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions