TinyBase logoTinyBase β

Synchronizer hooks

This is the collection of synchronizer hooks within the ui-react module. There are 6 synchronizer hooks in total.

useCreateSynchronizer

The useCreateSynchronizer hook is used to create a Synchronizer within a React application along with convenient memoization and callbacks.

Read more

useSynchronizer

The useSynchronizer hook is used to get a reference to a Synchronizer object from within a Provider component context.

Read more

useSynchronizerIds

The useSynchronizerIds hook is used to retrieve the Ids of all the named Synchronizer objects present in the current Provider component context.

Read more

useSynchronizerOrSynchronizerById

The useSynchronizerOrSynchronizerById hook is used to get a reference to a Synchronizer object from within a Provider component context, or have it passed directly to this hook.

Read more

useSynchronizerStatus

The useSynchronizerStatus hook returns a the status of a Synchronizer, and registers a listener so that any changes to it will cause a re-render.

Read more

useSynchronizerStatusListener

The useSynchronizerStatusListener hook registers a listener function with the Synchronizer that will be called when its status changes.

Read more