useTapStorage returns: a read of the document, plus the two writes.
Extends
TapQueryResult<T|null>
Type Parameters
T
T
Properties
data
undefined until the first answer for this key arrives. A later call that
fails leaves the last answer in place and only sets error, so branch on
error to detect a failure, never on data.
Inherited from
TapQueryResult.data
error
Inherited from
TapQueryResult.error
isLoading
true only while the first answer for this key is in flight.
Inherited from
TapQueryResult.isLoading
Methods
patch()
Parameters
partial
Partial<T>
Returns
Promise<T>
refetch()
Returns
void
Inherited from
TapQueryResult.refetch
save()
Parameters
document
T
Returns
Promise<void>