Skip to content

function useRoot view code

useRoot(
    root: Root, 
    subRoot: Root
): Root

Uses the given "sub" root to be started when the "parent" root is started.

Parameters

root: Root

The "parent" root that should use the root.

subRoot: Root

The "sub" root that should be queued.

Returns

Root

The same "parent" root for convenience.