ProviderProps
ProviderProps props are used with the Provider component, so that Store Metrics, Indexes, Relationships, Queries, and Checkpoints objects can be passed into the context of an application and used throughout.
{
store?: Store;
storesById?: {[storeId: Id]: Store};
metrics?: Metrics;
metricsById?: {[metricsId: Id]: Metrics};
indexes?: Indexes;
indexesById?: {[indexesId: Id]: Indexes};
relationships?: Relationships;
relationshipsById?: {[relationshipsId: Id]: Relationships};
queries?: Queries;
queriesById?: {[queriesId: Id]: Queries};
checkpoints?: Checkpoints;
checkpointsById?: {[checkpointsId: Id]: Checkpoints};
persister?: AnyPersister;
persistersById?: {[persisterId: Id]: AnyPersister};
synchronizer?: Synchronizer;
synchronizersById?: {[synchronizerId: Id]: Synchronizer};
}| Type | Description | |
|---|---|---|
store? | Store | A default single |
storesById? | {[storeId: Id]: Store} | An object containing multiple |
metrics? | Metrics | A default single |
metricsById? | {[metricsId: Id]: Metrics} | An object containing multiple |
indexes? | Indexes | A default single |
indexesById? | {[indexesId: Id]: Indexes} | An object containing multiple |
relationships? | Relationships | A default single |
relationshipsById? | {[relationshipsId: Id]: Relationships} | An object containing multiple |
queries? | Queries | A default single |
queriesById? | {[queriesId: Id]: Queries} | An object containing multiple |
checkpoints? | Checkpoints | A default single |
checkpointsById? | {[checkpointsId: Id]: Checkpoints} | An object containing multiple |
persister? | AnyPersister | A default single |
persistersById? | {[persisterId: Id]: AnyPersister} | An object containing multiple |
synchronizer? | Synchronizer | A default single |
synchronizersById? | {[synchronizerId: Id]: Synchronizer} | An object containing multiple |
One of each type of object can be provided as a default within the context. Additionally, multiple of each type of object can be provided in an Id-keyed map to the ___ById props.
Since
v1.0.0