Function: getRootStore()
function getRootStore<T>(node): T | undefined;
Gets the root store of a given tree child, or undefined if none.
Type Parameters
| Type Parameter | Description |
|---|---|
T extends object | Root store type. |
Parameters
| Parameter | Type | Description |
|---|---|---|
node | object | Target to find the root store for. |
Returns
T | undefined