KeyedFetchMixin
Auto-generated from the @jbrowse/mobx-state-tree model in the source. See the developer guide for concepts. Built into JBrowse core. View source.
FetchMixin plus the freshness compare a single-payload fetch runs: the key
the view, settings and adapter call for (currentFetchKey) against the key
the held data was committed under (loadedFetchKey). Composed by
GlobalFetchMixin and ComparativeFetchMixin (ADR-105).
Each section ends with the members a composed model contributes, linked to the page that documents them.
Volatiles
| Member | Description |
|---|---|
loadedFetchKeyFetchKey | undefined |
currentFetchKey as it stood when the held data was committed. Written only by commitFetchResult and cleared by reload, where the data itself is the display's and stays on screen under the overlay, and by GlobalFetchMixin.clearForDisplayedRegions. |
9 inherited volatiles from one model
From FetchMixin: activeSignal, fetchGeneration, reloadCounter, statusWindow, error, statusMessage, statusProgress, fetchCanceled, fetchRotation
Getters
| Member | Description |
|---|---|
viewSignaturestring | undefined |
Overridable hook, the freshness input a display supplies: what the current view calls for, such as its block set (blockKeySignature) plus any view-derived tier like HiC's bin size. Leave settings out; currentFetchKey pairs this with settingsFetchInputs. undefined holds the fetch off, and is the default, so a missing override hangs rather than draws stale data. |
dataSupersededboolean |
Overridable hook (default false): the held data matches the key but the screen will settle on different data, as when a dependent fetch is still out. A term of dataCurrent only, so it holds the export and never refetches; state only what a later commit is sure to clear. See MultiRegionDisplayMixin.dataSuperseded. |
currentFetchKeyFetchKey | undefined |
The key of the fetch the current view, settings and adapter call for: captured at issue and stamped at commit. Its identity survives a recomputation onto equal content. |
dataCurrentboolean |
The held data was committed for the current key and the display is not about to supersede it. For readers outside the fetch, the export gate above all; the fetch autorun makes the same compare inside installFetch, where a reload can override it. |
7 inherited getters from one model
From FetchMixin: isLoading, isLoadingOrCanceled, fetchInert, awaitingPrerequisite, awaitingDependentData, fetchHeld, settingsFetchInputs
Actions
| Member | Description |
|---|---|
commitFetchResult(commit: () => void, key: FetchKey) => void |
The commit half of a keyed fetch: the display's store and the key stamp in one transaction, so no observer sees fresh data under a stale key or the reverse. |
reload() => void |
FetchMixin.reload, whose counter bump overrides the skeleton's freshness gate, plus dropping the loaded key so an export started after the click waits for the refetch. The data stays on screen. |
11 inherited actions from one model
From FetchMixin: setError, setStatusMessage, stopActiveFetch, openStatusStream, cancelFetch, cancelFetchByUser, beforeDestroy, beginFetch, endFetch, lapseHeldFetch, runFetch