TinyBase logoTinyBase β

useSynchronizer

The useSynchronizer hook returns the default Synchronizer from the current Provider context (or a named one if an Id is provided).

useSynchronizer(id?: string): Synchronizer | undefined
TypeDescription
id?string

An optional Id of a named Synchronizer in the Provider context.

returnsSynchronizer | undefined

The Synchronizer, or undefined if not found.

Since

v8.1.0