Realtime API
useRealtimeRun
Subscribes to all changes to a run in a React component.
This react hook subscribes to all changes to a run. See the React hooks doc for more information on how to use this hook.
Response
The react hook returns an object with the following properties:
run
object
requiredThe run object. See the Run object doc for more information.
error
Error
An error object if an error occurred while subscribing to a run.
Was this page helpful?