Skip to content

Do not fire anywidget change listeners at mount#10179

Merged
manzt merged 1 commit into
mainfrom
push-nxtoruyzpnuw
Jul 14, 2026
Merged

Do not fire anywidget change listeners at mount#10179
manzt merged 1 commit into
mainfrom
push-nxtoruyzpnuw

Conversation

@manzt

@manzt manzt commented Jul 14, 2026

Copy link
Copy Markdown
Collaborator

Follow up to #10178

The WidgetBinding replayed current model state at every change: listener a render had registered, once the render settled. A listener could therefore fire for a trait that did not change, and the widget would run those side effects at every mount (#10173).

The replay is not necessary because model state is already current when render runs and deviates from anwidgets Jupyter.

@vercel

vercel Bot commented Jul 14, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
marimo-docs Ready Ready Preview, Comment Jul 14, 2026 3:48pm

Request Review

@manzt manzt added the bug Something isn't working label Jul 14, 2026
Base automatically changed from push-lruyzxunqrvl to main July 14, 2026 15:46
The `WidgetBinding` replayed current model state at every `change:`
listener a render had registered, once the render settled. A listener
could therefore fire for a trait that did not change, and the widget
would run those side effects at every mount (#10173).

The replay is not necessary because model state is already current when
render runs and deviates from anwidgets Jupyter.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review completed against the latest diff

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

Comment thread frontend/src/plugins/impl/anywidget/widget-binding.ts
@manzt
manzt merged commit a89f7b1 into main Jul 14, 2026
30 checks passed
@manzt
manzt deleted the push-nxtoruyzpnuw branch July 14, 2026 16:15
@github-actions

Copy link
Copy Markdown
Contributor

🚀 Development release published. You may be able to view the changes at https://marimo.app?v=0.23.15-dev11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants