You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 12, 2024. It is now read-only.
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?
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". Currentlyserver-componentsrelies oncreatedCallbackreturning a promise if it needs to block rendering.The spec suggests that "work should be deferred to
connectedCallbackas much as possible—especially work involving fetching resources or rendering." Do you think this would be an acceptable replacement tocreatedCallback? i.e. server-components relying on that callback to return a promise, if needed?