Persister hooks
useCreatePersister
The useCreatePersister hook is used to create a Persister within a React application along with convenient memoization and callbacks. Read more.
usePersister
The usePersister hook is used to get a reference to a Persister object from within a Provider component context. Read more.
usePersisterIds
The usePersisterIds hook is used to retrieve the Ids of all the named Persister objects present in the current Provider component context. Read more.
usePersisterOrPersisterById
The usePersisterOrPersisterById hook is used to get a reference to a Persister object from within a Provider component context, or have it passed directly to this hook. Read more.
usePersisterStatus
The usePersisterStatus hook returns a the status of a Persister, and registers a listener so that any changes to it will cause a re-render. Read more.
usePersisterStatusListener
The usePersisterStatusListener hook registers a listener function with the Persister that will be called when its status changes. Read more.
useProvidePersister
The useProvidePersister hook is used to add a Persister object by Id to a Provider component, but imperatively from a component within it. Read more.