@epikodelabs/streamix / vue/src/public-api / hydrateAtomSnapshotFromDocument
Function: hydrateAtomSnapshotFromDocument()
hydrateAtomSnapshotFromDocument(
targets,id?,documentRoot?):void
Defined in: projects/libraries/streamix/vue/src/lib/ssr-snapshot.ts:138
Reads, validates, and applies the server snapshot before Vue mounts. The element is removed after a successful handoff so it cannot be applied twice by a later client navigation.
Parameters
targets
Record<string, Writable<unknown>>
id?
string = '__streamix_snapshot'
documentRoot?
Pick<Document, "getElementById"> | undefined = ...
Returns
void