Skip to content

Files

Latest commit

9217a54 · Feb 12, 2025

History

History
31 lines (26 loc) · 668 Bytes

clear-pugs-make.md

File metadata and controls

31 lines (26 loc) · 668 Bytes
@patternfly/pfe-core @patternfly/elements
major
patch

Enable connectedCallback() and context protocol in SSR scenarios.

BREAKING CHANGE This change affects any element which is expected to execute in node JS when lit-ssr shims are present. By enabling the connectedCallback() to execute server side. Elements must ensure that their connectedCallbacks do not try to access the DOM.

Before:

connectedCallback() {
  super.connectedCallback();
  this.items = this.querySelectorAll('my-item');
}

After:

connectedCallback() {
  super.connectedCallback();
  if (!isServer) {
    this.items = this.querySelectorAll('my-item');
  }
}