solidstart-client-only

Render SolidJS components client-side with lazy loading and fallback UI.

Updated Jan 4, 2026
One-click install
npx skills add https://github.com/vallafederico/solid-ai-rules --skill solidstart-client-only
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: solidstart-client-only
Source: https://github.com/vallafederico/solid-ai-rules/tree/main/.claude/skills/solidstart-client-only
Command: npx skills add https://github.com/vallafederico/solid-ai-rules --skill solidstart-client-only

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill addresses the need to render specific components or entire pages in a SolidJS application exclusively on the client-side, bypassing Server-Side Rendering (SSR) when necessary.

Core Features & Use Cases

  • Client-Side Exclusivity: Ensures components run only in the browser, avoiding SSR.
  • Browser API Access: Enables the use of browser-specific APIs like window and document without SSR conflicts.
  • Dynamic Imports: Supports lazy loading of components with optional fallback UI.
  • Use Case: Integrating third-party widgets that rely on the DOM or using browser-specific features like localStorage.

Quick Start

Use the clientOnly function to import and render the 'ClientOnlyComponent' with a 'Loading...' fallback.

Frequently Asked Questions about solidstart-client-only

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I render SolidJS components exclusively on the client to avoid SSR conflicts?

To render SolidJS components client-side exclusively and bypass SSR, use a clientOnly function that imports the component dynamically with a fallback UI. This isolates browser-specific logic from server execution.

Why does my SolidStart application break when accessing browser APIs like window?

Accessing browser APIs like window during Server-Side Rendering causes conflicts because the DOM is unavailable. Skipping SSR for those components ensures they run only in the browser.

Can I use dynamic imports with a loading fallback in SolidStart for client-side rendering?

Yes, you can use dynamic imports with a loading fallback in SolidStart for client-side rendering. The clientOnly function supports lazy loading components while displaying a fallback UI element.

When do I need to bypass SSR in an isomorphic SolidJS application?

You need to bypass SSR in an isomorphic SolidJS application when integrating third-party widgets that rely on the DOM or using browser-specific features like localStorage that lack server equivalents.

What is the best way to handle browser-only components in a SolidStart project?

The best way to handle browser-only components in SolidStart is using client-side rendering exclusivity. This bypasses SSR, allowing direct access to browser APIs and supporting lazy loading with fallbacks.