Optional localWhether to run the query locally only.
Setting this to true will skip setting up a SyncSubscription that
syncs documents with remote peers. Consequently, the syncSubscription
property of the return value will be undefined.
Optional onA callback to run when an error occurs.
Optional persistenceIdentifies the Ditto instance to use when multiple instances are registered in the DittoProvider. Defaults to the first registered instance.
See Ditto.absolutePersistenceDirectory.
Optional queryThe arguments to pass to the query.
Optional subscriptionThe query used for the SyncSubscription instead of the observed
query. Use this to pass a sync-appropriate query when the observed query
carries clauses that Ditto rejects in subscriptions.
Ditto v5 enables DQL_RESTRICT_SUBSCRIPTION by default, so a subscription
query containing ORDER BY, LIMIT, or OFFSET throws
("Unsupported feature: Limit or Order by"). When your query needs those
clauses for observation, pass an unrestricted subscriptionQuery here so
sync still registers. Ignored when UseQueryParams.localOnly is
true.
Parameters for useQuery.