Convert to Custom Elements spec V1 #27
Description
Since this area of development is greenfield, it would be good to future-proof from the start. I'm currently working on a V1 conversion based on polymer's polyfill.
The main issue I've run into so far is that there is no more createdCallback
. Instead, a constructor is defined. The spect dictates that this constructor "must not gain any attributes or children". Currently server-components
relies on createdCallback
returning a promise if it needs to block rendering.
The spec suggests that "work should be deferred to connectedCallback
as much as possible—especially work involving fetching resources or rendering." Do you think this would be an acceptable replacement to createdCallback
? i.e. server-components relying on that callback to return a promise, if needed?