Component<'model> Type

Base class for components with a typed model.

Constructors

Constructor Description

Component()

Full Usage: Component()

Returns: Component<'model>
Returns: Component<'model>

Instance members

Instance member Description

this.Equal

Full Usage: this.Equal

The custom equality check. By default, uses reference equality.

this.ShouldRender

Full Usage: this.ShouldRender

Parameters:
    oldModel : 'model
    newModel : 'model

Returns: bool
Modifiers: abstract

Compare the old model with the new to decide whether this component needs to be re-rendered. By default, uses M:Equal.

oldModel : 'model
newModel : 'model
Returns: bool