Skip to content

Conversation

@mhornbacher
Copy link
Contributor

@tanstack/pacer seems to execute crypto.randomUUID at some point in throttle. This prevents partial pre-rendering of client-side forms in nextjs. As throttle is a very simple function this commit replaces it with a super simple implementation.

🎯 Changes

  • Removes @tanstack/pacer dependency
  • Adds local minimal throttle method that does not rely on crypto
  • Adds unit tests for the new throttle method

✅ Checklist

  • I have followed the steps in the Contributing guide.
  • I have tested this code locally with pnpm test:pr.

🚀 Release Impact

  • This change affects published code, and I have generated a changeset.
  • This change is docs/CI/dev-only (no release).

@tanstack/pacer seems to execute `crypto.randomUUID` at some point in `throttle`. This prevents partial pre-rendering of client-side forms in nextjs. As throttle is a very simple function this commit replaces it with a super simple implementation.
@changeset-bot
Copy link

changeset-bot bot commented Dec 6, 2025

🦋 Changeset detected

Latest commit: 40819a8

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

This PR includes changesets to release 13 packages
Name Type
@tanstack/form-core Patch
@tanstack/angular-form Patch
@tanstack/form-devtools Patch
@tanstack/lit-form Patch
@tanstack/react-form Patch
@tanstack/solid-form Patch
@tanstack/svelte-form Patch
@tanstack/vue-form Patch
@tanstack/react-form-devtools Patch
@tanstack/solid-form-devtools Patch
@tanstack/react-form-nextjs Patch
@tanstack/react-form-remix Patch
@tanstack/react-form-start 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

@mhornbacher
Copy link
Contributor Author

Closing as this is already fixed upstream: #1913 (comment)

@mhornbacher mhornbacher closed this Dec 6, 2025
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.

1 participant