Fork me on GitHub
#fulcro
<
2022-08-18
>
tony.kay19:08:10

Fulcro 3.5.24 release to Clojars. The new version supports composing a transaction during routing that can run in pessimistic mode so that the parent’s ops complete before children. See https://book.fulcrologic.com/#_path_ordered_pessimistic_transactions_requires_fulcro_3_5_24

👍 4
🚀 4
tony.kay19:08:47

See also: https://github.com/fulcrologic/fulcro/blob/develop/src/workspaces/com/fulcrologic/fulcro/cards/path_ordered_routing_cards.cljs In this demo the B target here https://github.com/fulcrologic/fulcro/blob/develop/src/workspaces/com/fulcrologic/fulcro/cards/path_ordered_routing_cards.cljs#L106 loads some information from the server (server mutation at top of the same file). The child router here https://github.com/fulcrologic/fulcro/blob/develop/src/workspaces/com/fulcrologic/fulcro/cards/path_ordered_routing_cards.cljs#L106 has submitted a transaction as well, but it won’t run until the parent is done, meaning that the mutation it has submitted (see line 80) will run after the parent’s full-stack operation, and it will see the updated value.