CARVIEW |
Navigation Menu
-
Notifications
You must be signed in to change notification settings - Fork 98
Releases: patternfly/patternfly-elements
@patternfly/pfe-tools@5.0.3
@patternfly/pfe-tools@5.0.2
@patternfly/pfe-tools@5.0.1
@patternfly/pfe-tools@5.0.0
ef900df
Compare
Assets 2
@patternfly/pfe-core@5.0.3
@patternfly/pfe-core@5.0.2
@patternfly/pfe-core@5.0.1
@patternfly/pfe-core@5.0.0
61ead0f
Compare
Major Changes
-
0277045: 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 theconnectedCallback()
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 = isServer ? [] : [...this.querySelectorAll('my-item')]; } }
Minor Changes
-
8b5b699: SSR: added
ssr-hint-has-slotted
andssr-hint-has-slotted-default
attributes to elements that use slot controller.When running SSR on elements with slots, add these attributes to ensure they render correctly.
<pf-card ssr-hint-has-slotted-default ssr-hint-has-slotted="header,footer"> <h2 slot="header">Header Content</h2> <p>Default content</p> <span slot="footer">Footer Content</span> </pf-card>
Patch Changes
- a2f3254:
ScrollSpyController
: respond to hashchange events
Assets 2
@patternfly/elements@4.1.0
61ead0f
Compare
Minor Changes
-
8b5b699: SSR: added
ssr-hint-has-slotted
andssr-hint-has-slotted-default
attributes to elements that use slot controller.When running SSR on elements with slots, add these attributes to ensure they render correctly.
<pf-card ssr-hint-has-slotted-default ssr-hint-has-slotted="header,footer"> <h2 slot="header">Header Content</h2> <p>Default content</p> <span slot="footer">Footer Content</span> </pf-card>