2026-05-31 13:54:31 +02:00

14 lines
313 B
TypeScript

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,
)