ResumeLabBlog
Matt Huggins

Matt Huggins

Web & Mobile Developer

matt.huggins@gmail.comhuggiemhugginsmatt-huggins
Projects
Codebound
Collectible card game
SVGConverter.io
Vectorize raster images
Recent Blog Posts
One Schema, Two Codegens: Typing GraphQL Across Client and ServerOne Schema, Two Codegens: Typing GraphQL Across Client and Server
Jun 17, 2026
Structuring the GraphQL Request ContextStructuring the GraphQL Request Context
Jun 9, 2026
Building Real AI Agents with the Vercel AI SDKBuilding Real AI Agents with the Vercel AI SDK
Jun 2, 2026
Blog Topics
aidata fetchingform managementgraphicsgraphqljavascriptnode.jsreactrubyruby on railssecuritytanstack formtanstack querytypescriptuser experience

Blog Posts Tagged “form management”

Back to Blog

Fixing TanStack Form `defaultValues` Type Discrepancies

Jun 2, 2026
reacttypescripttanstack formform management
Fixing TanStack Form `defaultValues` Type Discrepancies

When TanStack Form's defaultValues object narrows a union type to a more specific type than a given validation schema, TypeScript complains. However, there's a clean way to resolve it without sacrificing type safety.

Reusing Form Sections with TanStack Form's `withFieldGroup`

May 31, 2026
reacttypescripttanstack formform management
Reusing Form Sections with TanStack Form's `withFieldGroup`

TanStack Form's withFieldGroup HOC is commonly shown being used with nested objects. Though it's not as well documented, it's also possible to extract reusable form sections from flat, non-nested data shapes.

Building a Predictive Text Input in React

May 27, 2026
reacttypescriptform managementuser experience
Building a Predictive Text Input in React

Standard autocomplete dropdowns work well for simple cases, but sometimes you want inline "ghost text" predictions like an IDE. Here's how I built a predictive text input using contentEditable, careful cursor management, and a healthy respect for the DOM.

Multi-Step Form Validation with TanStack Form

Mar 5, 2026
reacttypescripttanstack formform management
Multi-Step Form Validation with TanStack Form

There's a moment in every sufficiently complex form where a Zod schema isn't enough. The email is valid. The password meets requirements. And yet, there's still a bot check to run, an API to hit, an error to map back to the right field. Here's what that looks like in practice.

Avoiding TanStack Form Pitfalls

Jan 7, 2026
reacttypescripttanstack formform management
Avoiding TanStack Form Pitfalls

While integrating TanStack Form with schema validation libraries like Zod, I ran into a subtle type system gap that caused validation errors to silently fail. Here's how I diagnosed the issue and built a type-safe wrapper to prevent it from happening again.

Building a Reusable Form Component Library with TanStack Form

Dec 17, 2025
reacttypescripttanstack formform managementuser experience
Building a Reusable Form Component Library with TanStack Form

After years of working with react-hook-form, I made the switch to TanStack Form and built a reusable component library around it on top of my company's existing form components. Here are the patterns I landed on for binding these components to form state, creating intelligent buttons with automated loading states, and lazy-loading fields for better performance.