TinyBase logoTinyBase β

Persister primitives

useCreatePersister

The useCreatePersister primitive is used to create a Persister within a Solid application along with convenient memoization and callbacks. Read more.

usePersister

The usePersister primitive is used to get a reference to a Persister object from within a Provider component context. Read more.

usePersisterIds

The usePersisterIds primitive is used to retrieve the Ids of all the named Persister objects present in the current Provider component context. Read more.

usePersisterOrPersisterById

The usePersisterOrPersisterById primitive is used to get a reference to a Persister object from within a Provider component context, or have it passed directly to this primitive. Read more.

usePersisterStatus

The usePersisterStatus primitive returns a the status of a Persister, and registers a listener so that any changes to it will cause an update. Read more.

usePersisterStatusListener

The usePersisterStatusListener primitive registers a listener function with the Persister that will be called when its status changes. Read more.

useProvidePersister

The useProvidePersister primitive is used to add a Persister object by Id to a Provider component, but imperatively from a component within it. Read more.