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 reload loop #58

Merged
merged 3 commits into from
Dec 21, 2021
Merged

Fix reload loop #58

merged 3 commits into from
Dec 21, 2021

Conversation

calumy
Copy link
Contributor

@calumy calumy commented Dec 21, 2021

This change checks for all files changed (and updates their modified times) before sending the reload message.

This fixes #48 and #26 by reloading the page only once rather than entering a reload loop caused by a reload message being sent for each file that has been changed.

@tjwalch tjwalch merged commit 7aee85a into tjwalch:master Dec 21, 2021
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.

When multiple static files are changed in a short time it goes into a reload loop.
2 participants