-
Notifications
You must be signed in to change notification settings - Fork 779
Description
I'm looking for a way to make hyperapp respect existing markup thats inside the app and leave it untouched. My problem is quite similar to the issues @frenzzy and @gyopiazza already have pointed out (#741, #688).
Parts of my application are made up of sub-applications provided through Custom Elements. Due to browser support be can not rely on ShadowDOM, so these Custom Elements use the Light DOM to render their UI. Hyperapp is overwriting their content in every render cycle. I've tried the hydration workaround. But this is not really a solution. You are able to restore the markup, but the innerHTML gets completely rewritten so you loose all events.
I've compiled a little JSBin the shows one concrete scenario I'm having problems with:
https://jsbin.com/dogujuq/4/edit?html,js,output
Using react I was able to make this work using shouldComponentUpdate
. But I currently don't see any solution how to make this happen in hyperapp.