Skip to content

bug: Ionic React App Repaints Entire Screen on Refresh #20030

@seanaguinaga

Description

@seanaguinaga

Bug Report

Ionic version:
[x] 4.x

Current behavior:
The ionic React Starter Side Menu Application, or any Ionic React App for that matter, flashes to white during refresh and when loading as a PWA. (Cannot get ride of, makes Ionic React a nonviable solution as PWA or website.

Expected behavior:
The website or PWA should not entirely re-render/repaint/flash as if it was not a SPA/Client Side App.

Steps to reproduce:
Please visit https://ionicflash.netlify.com on either a desktop or mobile device and refresh the page.

Compare to any other react application, like https://app.preconceptiontest.com

When using a splash screen, the white screen created by Ionic React makes for a poor user experience. As seen in these video clips: Videos

Please add both apps to an iOS Home Screen to test:

https://preconception.app

https://app.preconceptiontest.com

their spash screen screens and all webmanifest files for iOS are identical, yet one provides a much better visual experience.

please close and restart both PWAs on iOS, and you'll see what I mean.

At this point, Ionic React is a non-starter from at least the visual perspective. The cause of this flash and it's notable duration even with a bare bones starter application with barely any code should be cause for concern if Ionic React is meant to delivery the same experience as a vanilla CRA app.

https://github.com/preconceptioncode/test (ionic side menu starter app)

Ionic info:

Ionic:

   Ionic CLI : 5.4.9

Utility:

   cordova-res : not installed
   native-run  : not installed

System:

   NodeJS : v12.13.0
   npm    : 6.12.0
   OS     : Windows 10

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions