Skip to content

fix(writer-reload): add rate limiting#817

Merged
argl merged 1 commit intomainfrom
writer-reload-rate-limit
Sep 23, 2025
Merged

fix(writer-reload): add rate limiting#817
argl merged 1 commit intomainfrom
writer-reload-rate-limit

Conversation

@LeoMcA
Copy link
Copy Markdown
Member

@LeoMcA LeoMcA commented Sep 22, 2025

Fixes #776

Adds an exponential back-off to reloads if the first comparison each page load is different.

const res = await fetch(url);
if (res.ok) {
const state = await res.text();
// eslint-disable-next-line unicorn/no-negated-condition
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Opted to override eslint here and below because I think this order makes more sense - it follows the ordering of operations.

@github-actions
Copy link
Copy Markdown
Contributor

fcfbb40 was deployed to: https://fred-pr817.review.mdn.allizom.net/

@argl argl merged commit 66905d1 into main Sep 23, 2025
9 checks passed
@argl argl deleted the writer-reload-rate-limit branch September 23, 2025 08:54
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.

Local server sometimes constantly refreshes

3 participants