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
Decorations are often created during state transactions, in order to keep them consistent with the state. Yet widget decorations are raw DOM nodes, which sometimes need event handlers that have access to the view, or might want to draw something in a way that depends on some view prop or DOM state.
It might be a good idea to allow widget decorations to be created with a draw callback, rather than a finished DOM node, and then call that to actually draw them, with the view as parameter, the first time they are added to the DOM.
The text was updated successfully, but these errors were encountered:
Decorations are often created during state transactions, in order to keep them consistent with the state. Yet widget decorations are raw DOM nodes, which sometimes need event handlers that have access to the view, or might want to draw something in a way that depends on some view prop or DOM state.
It might be a good idea to allow widget decorations to be created with a draw callback, rather than a finished DOM node, and then call that to actually draw them, with the view as parameter, the first time they are added to the DOM.
The text was updated successfully, but these errors were encountered: