useControllerProp
Watch for changes to a controller property.
Syntax
useControllerProp(manager, prop);
Parameters
Name | Type | Description |
---|---|---|
manager | ControllerManager | The controller manager to use. |
prop | string | The property to watch. |
Example
const propValue = useControllerProp(controller, 'prop');
Available on: Client Server