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
When a template using an asyncReplace is re-rendered without changing the iterable or its current value in the asyncReplace, the value is incorrectly cleared.
…#4409)
* async-replace correctly re-renders when value is
unchanged. Fixes#4408.
* Update packages/lit-html/src/test/directives/async-replace_test.ts
Co-authored-by: Andrew Jakubowicz <spyr1014@gmail.com>
* Update packages/lit-html/src/test/directives/async-replace_test.ts
---------
Co-authored-by: Andrew Jakubowicz <spyr1014@gmail.com>
Which package(s) are affected?
Lit Core (lit / lit-html / lit-element / reactive-element)
Description
When a template using an
asyncReplace
is re-rendered without changing the iterable or its current value in theasyncReplace
, the value is incorrectly cleared.Reproduction
https://lit.dev/playground/#gist=257917d929b16bd6f3109c81f121b992
Click the
requestUpdate
buttonExpected: the asyncReplace value should not change
Actual: the asyncReplace value is cleared (it is replaced if the iterable emits another value)
Workaround
None.
Is this a regression?
No or unsure. This never worked, or I haven't tried before.
Affected versions
3.x
Browser/OS/Node environment
All
The text was updated successfully, but these errors were encountered: