Interface: ExperimentalWatchOptions
Options for Replicache.experimentalWatch.
experimental
This interface is experimental and may change in the future.
Properties
initialValuesInFirstDiff
• Optional
initialValuesInFirstDiff: boolean
When this is set to true
(default is false
), the watch
callback will
be called once asynchronously when watch is called. The arguments in that
case is a diff where we consider all the existing values in Replicache as
being added.
prefix
• Optional
prefix: string
When provided, the watch
is limited to changes where the key
starts with
prefix
.