Skip to content

@epikodelabs/streamix


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

Type Alias: AtomSnapshot ​

AtomSnapshot = Record<string, unknown>

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

Serializes named atom values for a server-rendered document and applies a validated payload back into writable atoms before client hydration. The payload is a versioned JSON document embedded in a non-executable script element, so the server render and the client hydration observe the exact same values without duplicating state into Vue's own stores.

Released under the MIT License.