• Applies the given action dynamically allowing the hosted action to be updated reactively while still appropriately handling the action lifecycle methods.

    Parameters

    • node: HTMLElement

      The node associated with the action.

    • Optionaloptions: { action: Action<unknown>; data?: unknown }

      Defines the action to dynamically mount.

    Returns ActionReturn<DynamicActionOptions>

    The action lifecycle methods.