Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
8b200ef
refactor: set up abstract async manager
LeCarbonator Nov 3, 2026
fa9a2db
feat: allow runner to accept upstream invalidation
LeCarbonator Nov 4, 2026
4d7bd62
feat: add context builders for validation
LeCarbonator Nov 4, 2026
0740976
feat: set up scaffolding for standard schema and function
LeCarbonator Nov 4, 2026
9caa8b4
feat: make basic validator executor
LeCarbonator Nov 4, 2026
418ffde
refactor: add utils for trigger enabled state
LeCarbonator Nov 4, 2026
f495a94
feat: add server pipeline runner
LeCarbonator Nov 4, 2026
3dfc04f
feat: add collection helper for promise resolution
LeCarbonator Nov 4, 2026
0b7e215
feat: add validation tracker
LeCarbonator Nov 5, 2026
1e3f5f8
refactor: inject new functions into existing work
LeCarbonator Nov 5, 2026
9019c69
refactor: make SSR use new system
LeCarbonator Nov 5, 2026
f8c64a0
refactor: connect new implementation
LeCarbonator Nov 14, 2026
3779151
chore: fix and add unit tests
LeCarbonator Nov 15, 2026
93efaf0
fix: delete outdated file
LeCarbonator Nov 15, 2026
7891320
fix: fix naming
LeCarbonator Nov 15, 2026
8b5e7c5
chore: add clarifying comment to LoC
LeCarbonator Nov 16, 2026
0e2094f
fix: ignore changed fields in submit error setting
LeCarbonator Nov 16, 2026
16586e3
feat: improve onSubmitInvalid a bit
LeCarbonator Nov 16, 2026
9f6ca03
refactor: centralize form and form group submission process
LeCarbonator Nov 18, 2026
49e11d9
fix: fix wrong looseOptions check
LeCarbonator Nov 18, 2026
86a1712
refactor: clean up react-form tests
LeCarbonator Nov 18, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions packages/angular-form/src/form-group.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export class TanStackFormGroup<
TGroupValue extends DeepValue<TFormData, TGroupName>,
const TGroupValidators extends FormGroupValidators<TGroupValue>,
TFormError extends ScopedErrorTypes,
TSubmitReturn = void,
> {
tanstackFormGroup = input.required<FormApi<TFormData, TFormError>>()
name = input.required<TGroupName>()
Expand All @@ -39,7 +40,8 @@ export class TanStackFormGroup<
TGroupName,
TGroupValue,
TGroupValidators,
TFormError
TFormError,
TSubmitReturn
>
>()
onSubmitInvalid =
Expand All @@ -48,7 +50,7 @@ export class TanStackFormGroup<
TFormData,
TGroupName,
TGroupValue,
NoInfer<ToFormGroupErrorTypes<TGroupValidators>>,
NoInfer<ToFormGroupErrorTypes<TGroupValidators, TSubmitReturn>>,
TFormError
>
>()
Expand All @@ -59,7 +61,8 @@ export class TanStackFormGroup<
TGroupName,
TGroupValue,
TGroupValidators,
TFormError
TFormError,
TSubmitReturn
> | null = null

private getOptions() {
Expand Down
21 changes: 15 additions & 6 deletions packages/angular-form/src/tanstack-field.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,24 @@ import type {
} from '@tanstack/form-core/internals'

export type AngularFieldSource =
AnyFormApi | InternalFormGroupApi<any, any, any, any, any>
AnyFormApi | InternalFormGroupApi<any, any, any, any, any, any>

export type AngularFieldData<TSource extends AngularFieldSource> =
TSource extends InternalFormGroupApi<any, any, infer TGroupValue, any, any>
TSource extends InternalFormGroupApi<
any,
any,
infer TGroupValue,
any,
any,
any
>
? TGroupValue
: TSource extends FormApi<infer TFormData, any>
? TFormData
: never

type AngularParentFormData<TSource extends AngularFieldSource> =
TSource extends InternalFormGroupApi<infer TFormData, any, any, any, any>
TSource extends InternalFormGroupApi<infer TFormData, any, any, any, any, any>
? TFormData
: TSource extends FormApi<infer TFormData, any>
? TFormData
Expand All @@ -50,7 +57,8 @@ type AngularSourceFormErrorTypes<TSource extends AngularFieldSource> =
any,
any,
any,
infer TFormErrorTypes
infer TFormErrorTypes,
any
>
? TFormErrorTypes
: TSource extends FormApi<any, infer TFormError>
Expand All @@ -63,9 +71,10 @@ type AngularSourceGroupFieldError<TSource extends AngularFieldSource> =
any,
any,
infer TGroupValidators,
any
any,
infer TSubmitReturn
>
? ToFormGroupErrorTypes<TGroupValidators>['selfError']
? ToFormGroupErrorTypes<TGroupValidators, TSubmitReturn>['subfieldError']
: never

type AngularSourceFieldApi<
Expand Down
1 change: 0 additions & 1 deletion packages/form-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
"dist/"
],
"dependencies": {
"@tanstack/pacer-lite": "^0.2.2",
"@tanstack/store": "^0.11.1"
},
"devDependencies": {
Expand Down
Loading