PersisterOrPersisterId
The PersisterOrPersisterId
type is used when you need to refer to a Persister
object in a React hook or component.
AnyPersister | Id
In some simple cases you will already have a direct reference to the Persister
object.
This module also includes a Provider
component that can be used to wrap multiple Persister
objects into a context that can be used throughout the app. In this case you will want to refer to a Persister
object by its Id
in that context.
Many hooks and components in this ui-react
module take this type as a parameter or a prop, allowing you to pass in either the Persister
or its Id
.
Since
v5.3.0