Skip to main content
Version: v10.0.0

createDbReporter

Reports one @hyper-fetch/db db: a snapshot of its collections, subsets, live queries, optimistic layers and outbox, sent once per tick in which the db changed, and whenever HyperFlow connects.


Import
import { createDbReporter } from "@hyper-fetch/plugin-devtools"

Parameters​

createDbReporter(__namedParameters: { db: DevtoolsDb; dbId: string; report: Report })
Parameters
NameTypeDescription
__namedParameters
{ db: DevtoolsDb; dbId: string; report: Report }

Returns​

createDbReporter
NameTypeDescription
sendSnapshot
() => void
unmount
() => void