Skip to content

[3.x] Add generic type inference for <Form> optimistic and transform callbacks#2990

Merged
pascalbaljet merged 1 commit into
3.xfrom
optimistic-types-in-form-component-generics
Mar 24, 2026
Merged

[3.x] Add generic type inference for <Form> optimistic and transform callbacks#2990
pascalbaljet merged 1 commit into
3.xfrom
optimistic-types-in-form-component-generics

Conversation

@pascalbaljet
Copy link
Copy Markdown
Member

This PR adds generic type inference for the optimistic and transform callbacks on the Form component. The generic is now threaded through each adapter's createForm<TForm>() helper and React's <Form<TForm>>.

Fixes #2988.

@pascalbaljet pascalbaljet added the next major release We need to consider this for the next major release, perhaps because of a breaking change label Mar 24, 2026
@pascalbaljet pascalbaljet merged commit 7e016d2 into 3.x Mar 24, 2026
56 of 67 checks passed
@pascalbaljet pascalbaljet deleted the optimistic-types-in-form-component-generics branch March 24, 2026 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

next major release We need to consider this for the next major release, perhaps because of a breaking change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant