Skip to content

chore(deps): remove debounce dependency - #3813

Open
LuggaPugga wants to merge 1 commit into
resend:canaryfrom
LuggaPugga:chore/remove-debounce
Open

LuggaPugga wants to merge 1 commit into
resend:canaryfrom
LuggaPugga:chore/remove-debounce

Conversation

@LuggaPugga

@LuggaPugga LuggaPugga commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

debounce was only used once, in setup-hot-reloading.ts, to batch file changes into a single reload event for the preview app. A setTimeout/clearTimeout pair does the same job, so this removes the dependency.


Summary by cubic

Removes the debounce dependency by replacing its only usage in setup-hot-reloading.ts with a setTimeout/clearTimeout pair. The hot-reload batching behavior—waiting 150ms for file changes before sending a single reload event—is unchanged. The dependency is also dropped from package.json and pnpm-lock.yaml, with a changeset released as a react-email patch.

Written for commit 2d6cfdd. Summary will update on new commits.

View guided diff

@changeset-bot

changeset-bot Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 2d6cfdd

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
react-email Patch
@react-email/editor Patch
@react-email/ui Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel

vercel Bot commented Oct 28, 2026

Copy link
Copy Markdown
Contributor

@LuggaPugga is attempting to deploy a commit to the resend Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions github-actions Bot added the linear-synced PR has been synced to Linear label Oct 28, 2026

@koksalenes koksalenes left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Replacing this with the native setTimeout / clearTimeout was a good idea. It keeps things simple without the need to include an extra dependency for a 150 ms delay.

@LuggaPugga
LuggaPugga force-pushed the chore/remove-debounce branch from dc6769d to 2d6cfdd Compare October 30, 2026 07:35

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

linear-synced PR has been synced to Linear

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants