@espressif/rainmaker-base-cdf
    Preparing search index...

    Interface ESPCDFSnapshotConfig

    Disk snapshot of the home tree, supplied through initCDF({ snapshot }). Saved whenever the tree changes, restored on cold start so the first screen paints before the network answers. Off when omitted.

    interface ESPCDFSnapshotConfig {
        keyPrefix?: string;
        liveTimeoutMs?: number;
        maxAgeMs: number;
        persistDelayMs?: number;
        storage: ESPCDFStorageAdapterInterface;
    }
    Index

    Properties

    keyPrefix?: string

    Storage key prefix. Default espcdf.snapshot.

    liveTimeoutMs?: number

    How long a restored entity waits for the first live sync before an operation fails. Default 15 s.

    maxAgeMs: number

    Snapshots older than this are ignored on restore.

    persistDelayMs?: number

    Quiet time after a store change before the snapshot is written, so a burst of changes (a sync, a run of param updates) costs one write. Default 1.5 s.

    Where the snapshot JSON is kept (the app's AsyncStorage adapter).