LazyPendingCursorOperationReturn
const { documents, exec } = useLazyPendingCursorOperation<Webhook>()
const handleSomeEvent = () => {
exec({
path: myPath,
offset: 0,
collection: 'collection'
sort: {
propertyPath: 'createdAt',
direction: 'descending' as SortDirection,
},
})
}
Runs a ditto live query lazily, once the exec function is called with the passed in query params, Eg: