Fork me on GitHub
#fulcro
<
2021-04-08
>
zhuxun215:04:59

Is there any documentation about ::txn/submission-queue, ::txn/active-queue, and ::txn/send-queues? The source code in the txn namespace is a bit hard to follow

tony.kay16:04:23

If you check out the source and use deps to make that what you’re using for your code, then you can decorate the tx processing code with calls to https://github.com/fulcrologic/fulcro/blob/develop/src/main/com/fulcrologic/fulcro/algorithms/tx_processing_debug.cljc tx-status, which will dump whats in the various queues.

tony.kay16:04:54

(`tap>` is your better friend here, these days)

tony.kay16:04:19

This section of the book mentions what all is going on in there: https://book.fulcrologic.com/#_the_transaction_processing_system

🙏 3
dvingo17:04:55

A while ago I was playing around with having the tx layer combine transactions into one network call. I left some cursory notes from my code dive here: https://github.com/dvingo/fulcro/blob/f0df8f8cf144e5c544af5a038cf6f5fca8b406b2/src/main/com/fulcrologic/fulcro/algorithms/tx-processing-readme.adoc#dans-notes or view the text bc I wasn't careful with formatting (the section "Dan's notes") : https://raw.githubusercontent.com/dvingo/fulcro/f0df8f8cf144e5c544af5a038cf6f5fca8b406b2/src/main/com/fulcrologic/fulcro/algorithms/tx-processing-readme.adoc (warning, very rough - typos etc, was meant for me to organize my thoughts 🙂 )

metal 5