Skip to content

feat: reduce default pollingInterval from 30000ms to 3000ms#385

Closed
austintgriffith wants to merge 1 commit intomainfrom
feature/reduce-polling-interval
Closed

feat: reduce default pollingInterval from 30000ms to 3000ms#385
austintgriffith wants to merge 1 commit intomainfrom
feature/reduce-polling-interval

Conversation

@austintgriffith
Copy link

@austintgriffith austintgriffith commented Jan 24, 2026

Summary

  • Reduces the default pollingInterval in scaffold.config.ts from 30000ms (30 seconds) to 3000ms (3 seconds)
  • Updates the comment to reflect the new default value

Motivation

The 30 second polling interval makes for a poor dev experience - the UI feels slow and unresponsive when waiting for state updates. Almost every developer changes this to a lower value immediately after starting a new project.

Reducing the default to 3 seconds provides a snappier UX out of the box while still being reasonable for RPC rate limits.

Test plan

  • Verified the template file generates correct config with new value

The 30 second polling interval makes for a poor dev experience - most
developers change this to a lower value immediately after starting a
new project. Reducing the default to 3 seconds provides a snappier UX
out of the box.
Copy link
Collaborator

@technophile-04 technophile-04 left a comment

Choose a reason for hiding this comment

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

Sounds good to me!

We had 30000 a while back so that we don't burn the RPC esprically the default mainnet RPC. But now we have 2 fallback for mainnet RPC.

And also I think now, most of the people deploy to L2's. So make sense to have it to be a lower value.

Just cc @carletex and @rin-st once.


Also while updating the core SE-2 files, the current flow is:

  1. We update that file in https://github.com/scaffold-eth/scaffold-eth-2 repo
  2. We do weekly or alternate week backmerge PR's from that repo to this eg: #69 (and those changes get auto-merged)

We planning to move everthing to this repo. So only this repo will be single source of truth. But currently we are following above flow (its a bit easy this way coz you update the thing in working repo instead of just templated files) but we plan to move out of this soon.

@carletex
Copy link
Member

we don't burn the RPC esprically the default mainnet RPC

Wasn't only the mainnet RPC (which is true by default even for localhost), but also all the L2/testnets RPC calls that go against our default Alchemy key.

But let's merge if you guys want, and keep an eye on how our alchemy key use changes.

@rin-st
Copy link
Member

rin-st commented Jan 27, 2026

But let's merge if you guys want, and keep an eye on how our alchemy key use changes.

Yep, I agree too. And as Shiv said, let's recreate PR to se-2 instead of create-eth

carletex added a commit to scaffold-eth/scaffold-eth-2 that referenced this pull request Jan 27, 2026
@carletex
Copy link
Member

fixed on #386

@carletex carletex closed this Jan 29, 2026
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.

4 participants