I saw the db.useQuery function, quite good for people who are familiar with react-query, but is there a useMutation equivlent? It seems that db.transact does not return anything stateful.
I second this. See also this Nielsen Norman article on putting errors close to their source. If there's a conflict when replicating, it should be possible to track back all the way to the source(s) of the mutations that caused the conflict.
I saw the
db.useQuery
function, quite good for people who are familiar with react-query, but is there auseMutation
equivlent? It seems thatdb.transact
does not return anything stateful.