Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[labs/virtualizer] Simplify initialization, more complete fix for #3481…
… (#3624) * add test for immediate layout change * consolidate state events * replace event-based communication between layout and virtualizer * no longer auto-load ResizeObserver polyfill; init now entirely sync except for default layout * add fix for immediate layout change * restore separate message for visibility change only, to avoid perf regression * update package-lock.json * fix typo in README * Update root package-lock and remove virtualizer specific package-lock * Updated the range changed events expectation to accept more than one event to adjust to inconsistent behavior in different runs/environments. * Updated section about the forked ResizeObserver polyfill in virtualizer README. --------- Co-authored-by: Augustine Kim <augustinekim@google.com> Co-authored-by: Brendan Baldwin <brendan@usergenic.com>
- Loading branch information
1 parent
61ce814
commit e51ff22
Showing
20 changed files
with
4,705 additions
and
3,496 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@lit-labs/virtualizer': patch | ||
--- | ||
|
||
Additional fix for [#3481: Error when immediately re-rendering](https://github.com/lit/lit/issues/3481); initialization code significantly simplified |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@lit-labs/virtualizer': major | ||
--- | ||
|
||
ResizeObserver polyfill is no longer automatically loaded. If you target older browsers without native ResizeObserver support, see the docs for guidance on manual polyfill loading. |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.