Skip to content

docs: clarify timer accumulation in $effect tutorial#1707

Closed
mdmahendri wants to merge 1 commit intosveltejs:mainfrom
mdmahendri:fix-tutorial
Closed

docs: clarify timer accumulation in $effect tutorial#1707
mdmahendri wants to merge 1 commit intosveltejs:mainfrom
mdmahendri:fix-tutorial

Conversation

@mdmahendri
Copy link
Copy Markdown

  • It's really useful if your PR references an issue where it is discussed ahead of time.
  • Prefix your PR title with feat:, fix:, chore:, or docs:.
  • This message body should clearly illustrate what problems it solves.

What does this PR do?

  • Clarifies the explanation about the interval timer example in the tutorial
  • Explain in more detail that slow down doesn't work because multiple timers accumulate

@vercel
Copy link
Copy Markdown

vercel Bot commented Dec 14, 2025

@mdmahendri is attempting to deploy a commit to the Svelte Team on Vercel.

A member of the Team first needs to authorize it.

@Rich-Harris
Copy link
Copy Markdown
Member

Thank you but this feels unnecessary — the text already explains what's happening. In fact the proposed change is less clear: whereas at present it says that the effect runs 'each time interval gets smaller', the changed text connects the effect to the event (the button click) rather than the state change that happens as a result of the event.

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.

2 participants