You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(react-form): fix server hydration issues (TanStack#1913)
* fix(react-form): fix cache components support
Attempts to resolve TanStack#1907
Removes `Math.random()` introduced in TanStack#1893 from the hot path allowing the page to be pre-built with a a user provided form id.
source: https://nextjs.org/docs/app/getting-started/cache-components#non-deterministic-operations
* generate changeset
* Change to patch
* feat: use useId on React 18+ with a fallback to uuid on React 17
* chore: incredible review feedback
* update changelog
* chore: rename file
* import correctly
* return a stable UUID reference
* chore: switch from useMemo to useState
* ci: apply automated fixes and generate docs
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
0 commit comments