pageboard / client

Web site building system - client packages
MIT License
4 stars 0 forks source link

[all elements ui] custom elements and page lifecycle #38

Closed kapouer closed 5 years ago

kapouer commented 6 years ago

Several custom elements need to run something in Page.patch(function(state) {}). So it is natural to assume they run this function on connectedCallback. However, there is no way to remove that function on disconnectedCallback. So custom elements need to register window listeners instead (and unregister them).