- #4774
25652984
Thanks @kyubisation! - Prevent calling HTMLElement.prototype in SSR
- #4575
aa4fc3ef
- Use a global flag to detect whether@lit-labs/ssr-react/enable-lit-ssr.js
was used for coordinating props when server rendering components made with@lit/react
.
-
#4572
5ed30d47
- Fix issue where event handler prop was incorrectly being set on the underlying custom element instance and potentially overriding an existing method/property. -
#4534
d68f5c70
- Wrapped components will now keep track of JSX props from previous render that were set as a property on the element, but are now missing, and set the property toundefined
. Note, wrapped components still do not have "default props" and missing props will be treated the same as explicitly passing inundefined
.This fixes the previously unexpected behavior where the following JSX when first rendered with a truthy condition
return condition ? <WrappedInput disabled /> : <WrappedInput />;
would leave the
disabled
property and reflected attribute to betrue
even when the condition turns falsey.
- #4485
57b00630
- Add "browser" export condition entrypoints to any package.json files with "node" export conditions. This fixes Node test runners emulating browser environments that were incorrectly loading the "node" entrypoints instead of the browser code.
- #4381
001a1b78
- Prefer type of property from an element over built-in React HTMLAttribute types. This also fixes type errors that would arise when they collide and can't be intersected.
- #4335
7fc72f7b
Thanks @stefanpearson! - When passing aref
callback to the Component,createComponent
was previously intercepting it and wrapping it in an unbound function. This change memoizes the consumerref
withuseCallback
, to keep the reference stable and ensure it isn't invoked repeatedly on subsequent renders.
- #4224
71526898
- Graduate @lit-labs/react to @lit/react, its permanent location. @lit-labs/react is now just a proxy for @lit/react, so code need not be duplicated in projects that depend on both.
- #4224
71526898
- Graduate @lit-labs/react to @lit/react, its permanent location. @lit-labs/react is now just a proxy for @lit/react, so code need not be duplicated in projects that depend on both.
@lit/react graduated from its previous location at @lit-labs/react.
For details on its changelog before graduating, see https://github.com/lit/lit/blob/main/packages/labs/react/CHANGELOG.md