I have another question about the Flow extension. ...
# squarelibraries
a
I have another question about the Flow extension. It seems to emit a new value everytime an insert statement happens (which is kinda fun, the UI refreshes while the data is loading in). Is there a way to make it emit once per transaction?
a
it will only emit once per transaction, this sounds like you dont have the inserts happening ina. transaction
a
Ah that's right. I have my inserts as
suspend
functions and calling
queries.transaction { ... }
I had to start a coroutine inside of the block. I made my insert functions non suspend and open the transaction inside a coroutine launch now