@conform-to/yup
Advanced tools
Comparing version 0.8.0-pre.1 to 0.8.0-pre.2
@@ -6,3 +6,3 @@ { | ||
"license": "MIT", | ||
"version": "0.8.0-pre.1", | ||
"version": "0.8.0-pre.2", | ||
"main": "index.js", | ||
@@ -29,3 +29,3 @@ "module": "index.mjs", | ||
"peerDependencies": { | ||
"@conform-to/dom": "0.8.0-pre.1", | ||
"@conform-to/dom": "0.8.0-pre.2", | ||
"yup": ">=0.32.0" | ||
@@ -32,0 +32,0 @@ }, |
@@ -68,3 +68,3 @@ # @conform-to/yup | ||
```tsx | ||
import { useForm, report } from '@conform-to/react'; | ||
import { useForm } from '@conform-to/react'; | ||
import { parse } from '@conform-to/yup'; | ||
@@ -87,4 +87,4 @@ import * as yup from 'yup'; | ||
if (!submission.value || submission.intent !== 'submit') { | ||
return report(submission); | ||
if (submission.intent !== 'submit' || !submission.value) { | ||
return submission; | ||
} | ||
@@ -91,0 +91,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13703