Hacker News new | past | comments | ask | show | jobs | submit login

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.



`db.transact` returns a promise. It 'resolves' when the transaction is guaranteed by the server, or if you are offline, if it's been enqueued. I'll note to include some information about this in the docs, thank you.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: