Hook to get the sync agent from the RiverSyncProvider.

You can use it to interact with the sync agent for more advanced usage.

Throws an error if no sync agent is set in the RiverSyncProvider.

Imports

import { useSyncAgent } from '@river-build/react-sdk'

Definition

function useSyncAgent(): SyncAgent

Source: useSyncAgent

Return Type

The sync agent in use, set in RiverSyncProvider.

SyncAgent