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