BaseConnectionModel
Auto-generated @jbrowse/mobx-state-tree API for the current JBrowse release — see pluggable elements for concepts. Built into JBrowse core. View source.
Properties
| Member | Description |
|---|---|
| tracks | |
configurationconfiguration: ConfigurationReference(configSchema) | |
silentsilent: types.optional(types.boolean, false) | set when the connection is being re-established on session load (its open tracks are already restored from connectionTrackConfigs), so doConnect suppresses first-connect side effects like launching a view or a success snackbar. Runtime-only: connection instances aren't serialized. |
Volatiles
| Member | Description |
|---|---|
loadingloading: false | true while connect() is fetching this connection's tracks; drives a loading affordance in the track selector. Distinct from an empty tracks array, which is also the state of a connection that loaded successfully but has no tracks. |
Getters
| Member | Description |
|---|---|
connectionIdstring | the connection's unique id, resolved from its configuration (the config is the source of truth; connection names are not guaranteed unique) |
namestring |
Actions
| Member | Description |
|---|---|
connect() => Promise<void> | no-op hook; concrete connections (UCSC/JB2 track hubs, etc.) override this to fetch and populate their tracks. Returns a promise so afterAttach can clear the loading flag once the fetch settles. |
setLoading(loading: boolean) => void | |
addTrackConf(trackConf: TrackConf) => any | |
addTrackConfs(trackConfs: TrackConf[]) => void | |
setTrackConfs(trackConfs: TrackConf[]) => void |