TanStackT
TanStack9mo ago
2 replies
improved-purple

Use field value with React Transitions

When I call startTransition(() => field.setValue(...)) inside a form.Field component, it does not seem it triggers what startTransition does. I wanted to use this with React View Transition API, but calling field.setValue inside startTransition did not fire the transition animation. Replacing it with a simple
useState
hook, it worked well.

Is this because TanStack form uses @tanstack/store instead of a plain
useState
? And if so, is there any way to circumvent this?
Was this page helpful?