Component rendering specifier.

Hierarchy

Properties

Methods

Properties

on?: StatePath | EventSender<[]>

A trigger that issues rendering.

This can be useful e.g. when component has multiple independent sub-views.

This can be one of the following:

  • A path to component state part the renderer should track. The rendering would trigger only when the target state part is updated.
  • Arbitrary event sender. The rendering would be triggered on any event from this sender.

A root state path is tracked when omitted.

When trigger is a root path (the default value), then the rendering will be triggered by any state update. Except for updates of sub-states inside RenderPath__root.

when?: "connected" | "settled"

When to start the rendering.

One of:

  • settled (the default) - start rendering when component is settled.
  • connected - start rendering when component's element is connected to document.

Methods

Generated using TypeDoc