Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Memoized field components don't rerender #1267

Open
anilanar opened this issue Mar 11, 2025 · 0 comments
Open

Memoized field components don't rerender #1267

anilanar opened this issue Mar 11, 2025 · 0 comments

Comments

@anilanar
Copy link

anilanar commented Mar 11, 2025

Describe the bug

When a field component is memoized with React.memo, the component doesn't reflect when its value changes.

Your minimal, reproducible example

https://codesandbox.io/p/devbox/musing-water-h333hr

Steps to reproduce

  1. Type something into the first field, which uses an unmemoized field component.
  2. Type something into the second field, which uses the exact same component, but memoized.

Expected behavior

The second field should display whatever is being typed into it.

TanStack Form adapter

react-form

TanStack Form version

v1.0.5

@anilanar anilanar changed the title Memoized field components don't update Memoized field components don't rerender Mar 11, 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

No branches or pull requests

1 participant