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: Screen blanking on render #2403

Merged
merged 3 commits into from
Feb 7, 2023
Merged

Fix: Screen blanking on render #2403

merged 3 commits into from
Feb 7, 2023

Conversation

Onokaev
Copy link
Contributor

@Onokaev Onokaev commented Feb 6, 2023

Overview

Closes #2402

Demo

Optional. Screenshots, curl examples, etc.

Notes

React rendering in React18 is a bit different with the other versions. From the documentation, root.render clears all HTML before rendering the main component https://beta.reactjs.org/reference/react-dom/client/createRoot#:~:text=The%20first%20time%20you%20call%20root.render%2C%20React%20will%20clear%20all%20the%20existing%20HTML%20content%20inside%20the%20React%20root%20before%20rendering%20the%20React%20component%20into%20it.
This is why the screen blanks before the main component is rendered.
Within the componentDidMount method, we are sure that the main component is already in the DOM, so we can safely remove the spinners

Testing Instructions

  • How to test this PR
    Load this branch and run GE
    Notice that the transition between the loading spinner and the main page is seamless

@Onokaev Onokaev requested review from thewahome and ElinorW February 7, 2023 07:20
@github-actions
Copy link
Contributor

github-actions bot commented Feb 7, 2023

Azure Static Web Apps: Your stage site is ready! Visit it here: https://jolly-sand-0ac78c710-2403.centralus.azurestaticapps.net

thewahome
thewahome previously approved these changes Feb 7, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Feb 7, 2023

Azure Static Web Apps: Your stage site is ready! Visit it here: https://jolly-sand-0ac78c710-2403.centralus.azurestaticapps.net

@Onokaev Onokaev requested a review from thewahome February 7, 2023 09:13
@github-actions
Copy link
Contributor

github-actions bot commented Feb 7, 2023

Azure Static Web Apps: Your stage site is ready! Visit it here: https://jolly-sand-0ac78c710-2403.centralus.azurestaticapps.net

@Onokaev Onokaev merged commit 870276a into dev Feb 7, 2023
@Onokaev Onokaev deleted the fix/blanking-on-render branch February 7, 2023 11:16
@sonarqubecloud
Copy link

sonarqubecloud bot commented Feb 7, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@github-actions github-actions bot mentioned this pull request Feb 8, 2023
thewahome pushed a commit that referenced this pull request Feb 13, 2023
Feature: add general playwright tests (#2149)

Task: Add Graph Support Info on README.md (#2347)

Task: Add logging for script errors (#2351)

Task: Add language snippet telemetry (#2371)

Task: Rename sample query "all the items in my drive" to "list items in my drive" (#2350)

Fix: Response area container heights (#2372)

Fix: Re-order tests (#2354)

Fix: Inform user if URL is incomplete (#2367)

Fix: Autocollapsing of history items (#2331)

Fix: Screen blanking on render (#2403)

Fix: Add method to filter ResizeObserver exceptions (#2342)

Fix: enter key runs previous query (#2348)

Fix: autocomplete character selection (#2304)

Fix: Display beta resources subgroups for admin group (#2364)

Fix: Update deprecated aria-label (#2368)

Fix: Default overlay on collections review panel (#2377)

Chore: December dependabot upgrades (#2296)

Chore: Dependabot upgrades February (#2401)

chore: Dependabot upgrades (#2335)

Chore: Code cleanup (#2251)
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.

Screen temporarily blanks out before rendering the main page
2 participants