Swiip / compo

🎼Compo·sing Web Compo·nents
MIT License
71 stars 2 forks source link

Prevent crashing when using HMR #2

Open Swiip opened 6 years ago

Swiip commented 6 years ago

Lots of tools has Hot Module Reloading activated by default, Parcel in first.

Unfortunately, Web Component spec seems not to support any "redefining" component.

Compo should at least prevent that case and log a warning. Currently, it fails badly.

Swiip commented 6 years ago

Preventing redefining prevents crash but the app still doesn't work.

Something in the store or in the connected callbacks of components...