Clients
Covers Engine 2.0.0
React Client Reference
React context and hooks for DARTWIC connections and live RAPID channel data.
| Export | Description |
|---|---|
| DartwicContext | / /** React context populated by DartwicProvider. Prefer useDartwic and the channel hooks in application components. |
| DartwicProvider | Provides a shared DARTWIC client connection and live channel store to a React subtree. |
| useDartwic | Returns the DARTWIC client context for the nearest DartwicProvider. |
| useDartwicChannel | Subscribes to one live channel. |
| useDartwicChannels | Subscribes to the complete live channel snapshot. |
| useDartwicChannelValues | Subscribes to a selected set of live channels without rerendering for unrelated channel updates. |