Function useLazyPendingIDSpecificOperation

  • 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.

    Returns LazyPendingIDSpecificOperationReturn

    LazyPendingIDSpecificOperationReturn

    Example

     const { document, exec } = useLazyPendingIDSpecificOperation<Webhook>()


    const handleSomeEvent = () => {
    exec({
    path: myPath,
    collection: 'collection'
    _id: new DocumentID("some_id")
    })
    }