Closed peterwilli closed 4 days ago
Closing this, after reading the todo example I really understood how it works. UI elements each go in their separate cells, and come together via arrays or stacks. For those new here facing the same issue, I recommend reading this example: https://docs.marimo.io/guides/state.html#example-todo-list
Describe the bug
I just found Marimo and it looks amazing, however, I seem to have a strange bug when using buttons.
I try to hide a button when it is clicked. However, when I click test, it does not dissapear. If I put button in another cell, it does magically work. Is this normal? If so, how can I hide a button on click?
Edit: It seems alternates also do not work:
Yields the same behaviour
Edit 3: According to https://docs.marimo.io/guides/state.html#example-todo-list
So apparently I have to cycle between 2 cells. I keep this issue open regardless in case someone has a cleaner solution.
Environment
Code to reproduce