After adding a transaction to the cart, the transaction does not appear on the `CartOverview` list
Blocked until: https://github.com/Textualize/textual/issues/3036
After adding some logging on the F2 Add to cart
, CartOverview.on_mount method
and CartOverview.____sync_cart_items method
we can observe:
We can observe:
178 2023-07-31 13:23:00.342 | 🐞 DEBUG | clive.__private.ui.operations.cart_based_screen.cart_overview:on_mount:76 - Watching 139843438964992 of 139843438967392
287 2023-07-31 13:23:05.783 | 🐞 DEBUG | clive.__private.ui.operations.operation_base_screen:__add_to_cart:113 - Updating reactive 139843438964992 of 139843438967392
So we can see only 2 logs and not 3, because there is a missing log of the CartOverview.____sync_cart_items method
. Textual doesn't call this method when reactively updating profile_data
when it should.
That's because this method was changed to be an async method in recent changes and textual seems to have an issue with self.mount on async methods
Edited by Mateusz Żebrak