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.
Parameters for useQuery.