What problem does it solve?
This Skill addresses the critical challenge of ensuring that server-side rendered (SSR) and client-side rendered (CSR) output in SolidStart applications remains identical, preventing hydration errors and ensuring a seamless user experience.
Core Features & Use Cases
- SSR/CSR Symmetry: Guarantees that browser-only APIs are not called during SSR and that server HTML remains stable.
- Stable IDs & Data: Ensures consistent unique IDs and JSON-serializable data passed from server to client.
- Resource & Suspense Alignment: Manages Suspense fallbacks and resource loading for identical behavior on server and client.
- Client-Only UI Management: Provides strategies for isolating client-specific components and effects.
- Streaming & Headers: Correctly handles streaming renders and header/status code consistency.
- Router Integration: Ensures proper Suspense usage within the router for error-free hydration.
- Use Case: Prevent common hydration mismatches in SolidStart by applying these rules, leading to more robust and predictable applications.
Quick Start
Apply the solidstart-hydration-guard skill to your SolidStart project to enforce consistent server and client rendering.