@epikodelabs/streamix / react/src/public-api / renderAtomSnapshotScript
Function: renderAtomSnapshotScript()
renderAtomSnapshotScript(
sources,id?):string
Defined in: projects/libraries/streamix/react/src/lib/runtime.ts:497
Produces a non-executable SSR payload element. Render this beside the React root on the server, then consume it before hydrateRoot on the client.
Parameters
sources
Record<string, DependencySource<unknown>>
id?
string = "__streamix_snapshot"
Returns
string