News for hackers. Stuff that matters.
Re:Show HN: InstantDB – A Modern Firebase by novoreorx on Friday August 23, 2024 @12:44AM (#41326231)
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.
Re:Show HN: InstantDB – A Modern Firebase by stopachka on Friday August 23, 2024 @12:50AM (#41326263)
`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.