File tree Expand file tree Collapse file tree 1 file changed +28
-2
lines changed
Expand file tree Collapse file tree 1 file changed +28
-2
lines changed Original file line number Diff line number Diff line change 11---
2- " @patternfly/pfe-core " : patch
2+ " @patternfly/pfe-core " : major
33" @patternfly/elements " : patch
44---
5- Enable context protocol in SSR scenarios.
5+ Enable ` connectedCallback() ` and context protocol in SSR scenarios.
6+
7+ BREAKING CHANGE
8+ This change affects any element which is expected to execute in node JS when
9+ lit-ssr shims are present. By enabling the ` connectedCallback() ` to execute
10+ server side. Elements must ensure that their connectedCallbacks do not try to
11+ access the DOM.
12+
13+ Before:
14+
15+ ``` js
16+ connectedCallback () {
17+ super .connectedCallback ();
18+ this .items = this .querySelectorAll (' my-item' );
19+ }
20+ ```
21+
22+ After:
23+ ``` js
24+ connectedCallback () {
25+ super .connectedCallback ();
26+ if (! isServer) {
27+ this .items = this .querySelectorAll (' my-item' );
28+ }
29+ }
30+ ```
31+
You can’t perform that action at this time.
0 commit comments