Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix link style load timing issue in window popups #994

Merged
merged 10 commits into from
Sep 4, 2024
Merged

Conversation

GerardasB
Copy link
Collaborator

@GerardasB GerardasB commented Sep 3, 2024

Changes

This PR fixes #986 a timing issue where stylesheets are not loaded in a popout widget before the React lifecycle runs, causing issues in the Viewport size != 0 assertion.

Testing

Added additional e2e tests.

@GerardasB GerardasB requested a review from a team as a code owner September 3, 2024 19:17
@GerardasB GerardasB merged commit e4a5c8c into master Sep 4, 2024
23 of 24 checks passed
@GerardasB GerardasB deleted the fix-986 branch September 4, 2024 07:22
@GerardasB
Copy link
Collaborator Author

@Mergifyio backport release/4.16.x

Copy link
Contributor

mergify bot commented Sep 4, 2024

backport release/4.16.x

✅ Backports have been created

mergify bot pushed a commit that referenced this pull request Sep 4, 2024
* Update playwright

* Run e2e on preview build

* Add trackConsole

* Add a test

* Fix by waiting for link styles to load before rendering.

* Fix tests

* rush change

* Fix linter error

* Copy adoptedStyleSheets async.

(cherry picked from commit e4a5c8c)

# Conflicts:
#	common/config/rush/pnpm-lock.yaml
GerardasB added a commit that referenced this pull request Sep 4, 2024
* Update playwright

* Run e2e on preview build

* Add trackConsole

* Add a test

* Fix by waiting for link styles to load before rendering.

* Fix tests

* rush change

* Fix linter error

* Copy adoptedStyleSheets async.
GerardasB added a commit that referenced this pull request Sep 4, 2024
* Fix link style load timing issue in window popups (#994)

* Update playwright

* Run e2e on preview build

* Add trackConsole

* Add a test

* Fix by waiting for link styles to load before rendering.

* Fix tests

* rush change

* Fix linter error

* Copy adoptedStyleSheets async.

(cherry picked from commit e4a5c8c)

# Conflicts:
#	common/config/rush/pnpm-lock.yaml

* rush update

---------

Co-authored-by: GerardasB <10091419+GerardasB@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Popout styles load after a delay
1 participant