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

Add JS API to disable reloading in the current session #303

Open
adamchainz opened this issue Dec 5, 2024 · 0 comments
Open

Add JS API to disable reloading in the current session #303

adamchainz opened this issue Dec 5, 2024 · 0 comments

Comments

@adamchainz
Copy link
Owner

          Thanks for the idea, but I don't think this is the best approach. Injecting a floating button for this use case seems quite overbearing: the button can get in the way, extra CSS and JS are needed, and most users likely don't care.

If you have a few URLs that you don't want to reload, you can subclass the middleware to skip those. We could document how to do that.

Alternatively, we could add a JS API to disable reloading for the current browser session. Something like "open the dev console and type djangoBrowserReload.disable()". What do you think?

Originally posted by @adamchainz in #262 (comment)

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

No branches or pull requests

1 participant