Skip to main content
Version: v10.0.0

DevtoolsObserversEventData

The data of ObserverEvents.CHANGED . Only the user's application knows its observers, so the plugin reports them. Keys not listed keep their previous counts.


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

Preview​

type DevtoolsObserversEventData = {
cache: Record<string, number>;
queues: Record<string, number>;
}

Structure​

DevtoolsObserversEventData
NameTypeDescription
cache
Record<string, number>

Observers by cache key: subscriptions to the data of the key, one for every mounted useFetch , useSubmit and

useCache reading it, plus every cache.events.onDataByKey of the application.

queues
Record<string, number>

Observers by query key: subscriptions to the loading state or the queue of the key, one for every mounted

useFetch , useSubmit and useQueue using it, plus every onLoadingByQueue and onQueueChangeByKey of the application.