Function: MobxReactionUpdate()
ts
function MobxReactionUpdate<T>(constructor: T): T;Defined in: @adobe/lit-mobx:
A class mixin which can be applied to lit-element's ReactiveElement derived classes. This mixin adds a mobx reaction which tracks the update method of ReactiveElement.
Any observables used in the render template of the element will be tracked by a reaction and cause an update of the element upon change.
Type Parameters
| Type Parameter |
|---|
T extends ReactiveElementConstructor |
Parameters
| Parameter | Type | Description |
|---|---|---|
constructor | T | the constructor to extend from to add the mobx reaction, must be derived from ReactiveElement. |
Returns
T