Runs a ditto live query lazily, once the exec function is called with the passed in query params, over a know document ID. As a result of this the live query may return a document with the ID passed in as a parameter, if it exists.
LazyPendingIDSpecificOperationReturn
const { document, exec } = useLazyPendingIDSpecificOperation<Webhook>() const handleSomeEvent = () => { exec({ path: myPath, collection: 'collection' _id: new DocumentID("some_id") }) } Copy
const { document, exec } = useLazyPendingIDSpecificOperation<Webhook>() const handleSomeEvent = () => { exec({ path: myPath, collection: 'collection' _id: new DocumentID("some_id") }) }
Runs a ditto live query lazily, once the exec function is called with the passed in query params, over a know document ID. As a result of this the live query may return a document with the ID passed in as a parameter, if it exists.