Clients

Covers Engine 2.0.0

React Client Reference

React context and hooks for DARTWIC connections and live RAPID channel data.

ExportDescription
DartwicContext/ /** React context populated by DartwicProvider. Prefer useDartwic and the channel hooks in application components.
DartwicProviderProvides a shared DARTWIC client connection and live channel store to a React subtree.
useDartwicReturns the DARTWIC client context for the nearest DartwicProvider.
useDartwicChannelSubscribes to one live channel.
useDartwicChannelsSubscribes to the complete live channel snapshot.
useDartwicChannelValuesSubscribes to a selected set of live channels without rerendering for unrelated channel updates.