react-hook-form
Advanced tools
Comparing version 2.0.1-beta.5 to 2.0.1
@@ -374,6 +374,4 @@ import { useRef, useState, useEffect } from 'react'; | ||
function register(data) { | ||
if (!data) { | ||
console.error('Looks like ref is missing.'); | ||
if (!data) | ||
return; | ||
} | ||
if (data instanceof HTMLElement) { | ||
@@ -425,4 +423,2 @@ registerIntoAllFields(data); | ||
localErrors = await validateWithSchema(validationSchema, values); | ||
console.log('wtf', localErrorMessages.current); | ||
console.log('localErrors', localErrors); | ||
if (localErrors === undefined) { | ||
@@ -429,0 +425,0 @@ callback(values, e); |
@@ -376,6 +376,4 @@ 'use strict'; | ||
function register(data) { | ||
if (!data) { | ||
console.error('Looks like ref is missing.'); | ||
if (!data) | ||
return; | ||
} | ||
if (data instanceof HTMLElement) { | ||
@@ -427,4 +425,2 @@ registerIntoAllFields(data); | ||
localErrors = await validateWithSchema(validationSchema, values); | ||
console.log('wtf', localErrorMessages.current); | ||
console.log('localErrors', localErrors); | ||
if (localErrors === undefined) { | ||
@@ -431,0 +427,0 @@ callback(values, e); |
{ | ||
"name": "react-hook-form", | ||
"version": "2.0.1-beta.5", | ||
"version": "2.0.1", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "module": "dist/index.es.js", |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1
49987
1151