@serenity-is/domwise / currentLifecycleRoot

Function: currentLifecycleRoot()

currentLifecycleRoot(...args): Element | null

Defined in: src/disposing-listener.ts:161

Sets or gets the current lifecycle root element.

Parameters

args

...Element[]

If provided, sets the lifecycle root to the first argument and returns the previous root.

Returns

Element | null

The current lifecycle root element or null if none is set.