edifice.StateValue.subscribe

StateValue.subscribe(component)[source]

Subscribes a component to this value’s updates and returns the current value.

Call this method in the Component render method (or after Component mounts).

Parameters

component (Component) – Edifice Component

Return type

Any

Returns

Current value.