A React hook that consumes a handle for synchronization and triggers rerendering in the consuming component.
This hook will consume a handle registered with the given ID. It will then set up an event effect that triggers rerendering in the consuming component when the specified event is emitted.
The event that triggers rerendering can be customized.
Type Parameters
T extends object
extends object
Parameters
ID: Path
The ID of the handle to consume.
OptionalupdateEvent: string = 'set'
The event that triggers rerendering in the consuming component.
A React hook that consumes a handle for synchronization and triggers rerendering in the consuming component.
This hook will consume a handle registered with the given ID. It will then set up an event effect that triggers rerendering in the consuming component when the specified event is emitted. The event that triggers rerendering can be customized.