Hook to get the sync agent from the TownsSyncProvider.

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 TownsSyncProvider.

Imports

import { useSyncAgent } from '@towns-protocol/react-sdk'

Definition

function useSyncAgent(): SyncAgent

Source: useSyncAgent

Return Type

The sync agent in use, set in TownsSyncProvider.

SyncAgent