Standard web component has 3 key lifecycle point: create(constructor), connected, disconnected. This is because an element may be remove from dom and added back again and again. With these hooks, we could create something in constructure but reuse them from time to time.
But lifecycles defined by this repo are only create and release, which means we have to recreate all thing after reconnecting.
Am I missing something? Or how could we handle this?
Standard web component has 3 key lifecycle point: create(constructor), connected, disconnected. This is because an element may be remove from dom and added back again and again. With these hooks, we could create something in constructure but reuse them from time to time.
But lifecycles defined by this repo are only
createandrelease, which means we have to recreate all thing after reconnecting.Am I missing something? Or how could we handle this?