question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

how to avoid the alert "Page needs to be reloaded, click OK to reload"

See original GitHub issue

In my app, after the user log in I switch with .redirect to a page that needs to load data from DB.

I always get the alert:

 Page needs to be reloaded, click OK to reload

how could be possible to avoid to appear?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:9

github_iconTop GitHub Comments

2reactions
falkoschindlercommented, May 23, 2021

I avoid it using the following line:

wp.head_html = '<script>confirm = () => true;</script>'

Note that this overrides the JavaScript confirm function. But it solves the problem in my case.

1reaction
SijanC147commented, Jan 14, 2021

@giodegas can you elaborate on your solution? I’m using uvicorn and i’m trying to turn off the alert when the app auto-reloads on file changes

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to reload a page after the OK click on the Alert Page
1. Use a prompt instead of an alert. – Ohgodwhy · Perhaps help you this stackoverflow.com/questions/7146028/… – JGrinon · Are you reloading this ......
Read more >
how to avoid the alert "Page needs to be reloaded, click OK to ...
In my app, after the user log in I switch with .redirect to a page that needs to load data from DB. I...
Read more >
How can I prevent from reloading the page ... - Google Groups
Hi, I ran into a problem about clicking the "reload" button on a web browser. My app is a stateful GWT app. Users...
Read more >
How to properly reload the ASP page after js alert. - CodeProject
Solution 1. Accept Solution Reject Solution. I think you need a confirmation message not the alert here is how. JavaScript.
Read more >
location.reload() - Web APIs | MDN
The location.reload() method reloads the current URL, like the Refresh button. The reload may be blocked and a SECURITY_ERROR DOMException ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found