Describe the bug
Moving over from manzt/anywidget#985, since I believe this is related to the AFM support in marimo.
When refreshing the browser (kernel stays alive, only the frontend reconnects), model.get() inside render() returns the Python-side default value rather than the current kernel state.
Reproduction
https://molab.marimo.io/notebooks/nb_GPq5oLnwfQDYFyrZmraYrU
Will you submit a PR?
Environment
Code to reproduce
No response
Describe the bug
Moving over from manzt/anywidget#985, since I believe this is related to the AFM support in marimo.
When refreshing the browser (kernel stays alive, only the frontend reconnects),
model.get()insiderender()returns the Python-side default value rather than the current kernel state.Reproduction
https://molab.marimo.io/notebooks/nb_GPq5oLnwfQDYFyrZmraYrU
Will you submit a PR?
Environment
Code to reproduce
No response