Closed andrewhill157 closed 1 week ago
This is by design, marimo doesn't introspect objects. The relevant section from the docs is:
When you call the setter function in one cell, all other cells that reference the getter function via a global variable are automatically run (similar to UI elements).
Appreciate it might be easy to miss that line though (from https://docs.marimo.io/guides/state.html#reactive-state)
ah thank you and sorry for missing / misinterpreting!
Describe the bug
I'm not sure if this is just the intended behavior, but I was trying to organize some state into a class I could pass rather than having individual getters and setters and noticed that using the getter / setter functions from mo.state seems to result in correct cell reruns but if they are contained within a class they don't seem to trigger the same cell refresh
Environment
Code to reproduce