Skip to content

@epikodelabs/streamix


@epikodelabs/streamix / vue/src/public-api / hydrateAtomSnapshot

Function: hydrateAtomSnapshot() ​

hydrateAtomSnapshot(targets, snapshot): void

Defined in: projects/libraries/streamix/vue/src/lib/ssr-snapshot.ts:31

Applies a validated SSR payload to named writable atoms before hydration.

Parameters ​

targets ​

Record<string, Writable<unknown>>

snapshot ​

AtomSnapshot

Returns ​

void

Released under the MIT License.