How to refresh a page in Chrome? #3015
-
Hello, I am testing my application all imaginable use cases; when I click "refresh" in Chrome, it shows empty page. I have basic controller loading data from database. How to make sure page gets data? I have just empty page after refresh, and no any errors. "Page refresh" gets intercepted with this:
User is authenticated; page with data is shown after authentication; I click "refresh" in the browser, empty page is shown. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
From "debug", I noticed that "runApp()" is getting called 2nd time |
Beta Was this translation helpful? Give feedback.
-
never mind, I found an issue; I was using one of many Firebase examples found on Internet, which had duplicate authentication listener registrations both forwarding to the same page if user is authenticated; one was in "initFirebase" method, and second one in AuthenticationController; after finding this, I was able to fix the issue. No more "duplicate GlobalKey" issues anymore, and "refresh" in Chrome works as expected. |
Beta Was this translation helpful? Give feedback.
never mind, I found an issue; I was using one of many Firebase examples found on Internet, which had duplicate authentication listener registrations both forwarding to the same page if user is authenticated; one was in "initFirebase" method, and second one in AuthenticationController; after finding this, I was able to fix the issue.
No more "duplicate GlobalKey" issues anymore, and "refresh" in Chrome works as expected.