@epikodelabs/streamix / vue/src/public-api / renderAtomSnapshotScript
Function: renderAtomSnapshotScript()
renderAtomSnapshotScript(
sources,id?):string
Defined in: projects/libraries/streamix/vue/src/lib/ssr-snapshot.ts:120
Produces a non-executable SSR payload element. Render this beside the Vue application on the server, then consume it before mounting on the client.
Parameters
sources
Record<string, DependencySource<unknown>>
id?
string = '__streamix_snapshot'
Returns
string