Skip to content
Source
Sign inSign up
TanStack/form

docs: general docs updates #2118

Openharry-whorlow(GitHub profile, opens in a new tab)wants to merge 6 commits intomain fromssr-docsopened

Showing 10 changed files with 185 additions and 0 deletions (loading 7).

x
0 of 10 viewed, 10 left
19 additions and 0 deletionsdocs/framework/angular/guides/submission-handling.mdModified
View file
@@ -102,3 +102,22 @@
```
+​
+> In a situation where you want to be able to submit in an invalid state `canSubmitWhenInvalid` boolean flag can be provided to useForm.
+​
+```angular-ts
+import { injectForm } from '@tanstack/angular-form';
+​
+export class AppComponent {
+ form = injectForm({
+ defaultValues: {
+ data: '',
+ },
+ canSubmitWhenInvalid: true,
+ onSubmit: async ({ value }) => {
+ // Do something with the values
+ console.log(value)
+ },
+ });
+}
+```
4 additions and 0 deletionsdocs/framework/react/guides/arrays.mdModified
View file