Gets an SDK adaptor by identifier.
The identifier of the adaptor to retrieve
The SDK adaptor instance
Adds a custom store to the root store.
The name of the custom store.
The class of the custom store.
Example:
import { makeAutoObservable, action } from "mobx";
import { CDF } from "./index";
class CustomStore {
rootStore: CDF;
customValue = "custom value";
constructor(rootStore: CDF) {
this.rootStore = rootStore;
makeAutoObservable(this);
}
@action setCustomValue(value: string) {
this.customValue = value;
}
}
store.addStore("customStore", CustomStore);
Returns the identifier of the currently active SDK adaptor, or null if none is set.
The active adaptor identifier, or null
Returns the currently selected home group, or undefined if none is set.
Returns nodes that belong to the current home's nodeIds.
Staticget
The root store that manages all individual stores.