Module
Solid.Web.SSR
- Package
- purescript-purs-solid
- Repository
- arazorda/purs-solid
Server rendering. Run under Node's default export conditions, which select Solid's server build.
#RenderOptions Source
type RenderOptions :: Row Typetype RenderOptions = (noScripts :: Boolean, nonce :: String, onError :: Error -> Effect Unit, renderId :: String)
#StreamOptions Source
type StreamOptions :: Row Typetype StreamOptions = (noScripts :: Boolean, nonce :: String, onCompleteAll :: (String -> Effect Unit) -> Effect Unit, onCompleteShell :: (String -> Effect Unit) -> Effect Unit, onError :: Error -> Effect Unit, renderId :: String, signal :: AbortSignal)
RenderOptions plus what only streaming renders take.
#renderToStringWith Source
renderToStringWith :: forall given missing. Union given missing RenderOptions => Record given -> JSX -> Effect (Either Error String)Takes any subset of RenderOptions.
#renderToStringWithHead Source
renderToStringWithHead :: forall given missing. Union given missing RenderOptions => Record given -> JSX -> Effect (Either Error { head :: String, html :: String })Returns head-bound markup (head tags, asset links, styles) separately, for
a host that owns the <head> template.
#renderToStringAsyncWith Source
renderToStringAsyncWith :: forall given missing. Union given missing StreamOptions => Record given -> JSX -> Aff (Either Error String)#renderToReadableStream Source
renderToReadableStream :: forall given missing. Union given missing StreamOptions => Record given -> JSX -> Effect (Either Error (ReadableStream Uint8Array))Streams the HTML: the shell first, then each boundary as it resolves.
Left only for errors thrown while starting the render; later render
errors go to onError.
- 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