Re: [w3c/webcomponents] How to avoid memory leaks when detecting custom elements? (#674)

This this is not good then (even if it is just how Promises work). Can we make it cancellable?

```js
ce.whenDefined(...).then(...).cancel() // or something
```

When a parent component unmounts (disconnectedCallback) it'd be nice to cancel waiting on promises so the component can be cleaned up.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/webcomponents/issues/674#issuecomment-335319552

Received on Monday, 9 October 2017 23:49:08 UTC