Skip to main content

Function: getRootStore()

function getRootStore<T>(node): T | undefined;

Gets the root store of a given tree child, or undefined if none.

Type Parameters​

Type ParameterDescription
T extends objectRoot store type.

Parameters​

ParameterTypeDescription
nodeobjectTarget to find the root store for.

Returns​

T | undefined