marko-js-archive / marko-widgets

[LEGACY] Module to support binding of behavior to rendered UI components rendered on the server or client
http://v3.markojs.com/docs/marko-widgets/
MIT License
141 stars 40 forks source link

Widget should skip DOM update if the widget is destroyed before update occurs #137

Closed agyanchand closed 8 years ago

agyanchand commented 8 years ago

A number of times we see morphedDom exception because of state changes that trigger a dom refresh on the widget after a widget is destroyed. This usually happens with unit tests. We usually get around this by setting Timeout before calling done(). But this solution is not scalable. We need to add a better check to not try re-rendering the DOM after it is destroyed.

patrick-steele-idem commented 8 years ago

This has been fixed and new versions published: