apahl
apahl10mo ago

Unexpected updates

Plate filter is the one resetting the other text inputs (not the radio button). This is happening on Ubuntu 22.04 and Marimo 0.2.4.
2 Replies
Myles Scolnick
Myles Scolnick10mo ago
This is because when the top filters get changed, it reruns the cell below (due to its dependency on the top filters) which resets the value. You can split up the cells to be less entangled, or you can use functools.cache, or you can use mo.state. Each should prevent a re-render that would reset your input state
apahl
apahlOP10mo ago
Indeed, splitting the cells up a bit more already solved the issue. Thanks a lot, I couldn't figure it out.