You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When, for example, widget traits are changed quickly after the creation of the widget, these updates would not be received by the widget. This happens because the widget model is loaded asynchronously by solid.createResource at
Describe the bug
When, for example, widget traits are changed quickly after the creation of the widget, these updates would not be received by the widget. This happens because the widget model is loaded asynchronously by
solid.createResource
atanywidget/packages/anywidget/src/widget.js
Lines 336 to 340 in ce7f298
Any comm messages that are sent before
load_widget
resolves are lost.Reproduction
Take a look at this PyCafe example. If you open the developer console, you can see that none of the change-triggered console messages are sent.
I also think that plotly/plotly.py#4933 (which was fixed differently in plotly/plotly.py#4956) was ultimately due to this behaviour.
Logs
System Info
System info
Severity
annoyance
The text was updated successfully, but these errors were encountered: