Skip to content

function useRoots view code

useRoots(
    root: Root, 
    subRoots: { Root }
): Root

Given an array of "sub" roots, uses all roots to be started when the "parent" root is started.

Parameters

root: Root

The "parent" root that should use the root.

subRoots: { Root }

The "sub" roots that should be queued.

Returns

Root

The same "parent" root for convenience.