Module
Solid.Component
- Package
- purescript-purs-solid
- Repository
- arazorda/purs-solid
A component's body runs once per use, in Setup. Props are a plain
record: pass Accessors for values that change.
#Component Source
type Component props = ComponentRep props#createUniqueId Source
createUniqueId :: Setup StringA unique id, stable between server render and hydration.
#lazy Source
lazy :: forall @name props. LazyName name => Component (Record props)Loaded on first use, suspending the nearest loading boundary. Named by
the component's qualified name; purs-solid/vite bundles its module as a
separate chunk:
settings :: Component { user :: User }
settings = lazy @"App.Settings.settings"
#clientOnly Source
clientOnly :: forall @name props. LazyName name => Component { fallback :: JSX | props }Like lazy, but never runs on the server: the server, and hydration,
render fallback; the component replaces it once loaded and hydrated.
For browser-only code (window, DOM measurement). Loading starts on first
render.
Re-exports from Solid.Internal.View
#LazyModule Source
data LazyModuleA module namespace from a dynamic import().
- Modules
- Solid.
Action - Solid.
Async - Solid.
Component - Solid.
Component. JS - Solid.
Context - Solid.
Control - Solid.
DOM - Solid.
DOM. Aria - Solid.
DOM. AttrValue - Solid.
DOM. HTML - Solid.
DOM. SVG - Solid.
Errors - Solid.
Internal. Action - Solid.
Internal. Equality - Solid.
Internal. Identity - Solid.
Internal. Names - Solid.
Internal. Optimistic - Solid.
Internal. Props - Solid.
Internal. Reply - Solid.
Internal. Serializable - Solid.
Internal. ServerFunction - Solid.
Internal. Setup - Solid.
Internal. Store - Solid.
Internal. Tracked - Solid.
Internal. View - Solid.
JSX - Solid.
Lifecycle - Solid.
Meta - Solid.
Owner - Solid.
Reactivity - Solid.
Root - Solid.
Router - Solid.
Router. Action - Solid.
Router. Path - Solid.
Router. Query - Solid.
Router. Search - Solid.
Setup - Solid.
Signal - Solid.
Start. Middleware - Solid.
Start. RequestEvent - Solid.
Start. Response - Solid.
Start. ServerFunction - Solid.
Start. UseServer - Solid.
Store - Solid.
Testing - Solid.
Utility - Solid.
Web - Solid.
Web. SSR