14 lines
313 B
TypeScript
Raw Permalink Normal View History

2026-05-31 13:21:13 +02:00
import serverSnapshotState from 'server-reactive:snapshots?diff'
import { createSyncState } from './syncState'
export type SnapshotState = Record<number, {
revision: string
image: string
}>
export const snapshotState = createSyncState<SnapshotState>(
serverSnapshotState,
serverSnapshotState,
true,
)