@hookform/devtools
Advanced tools
Comparing version 3.0.0-alpha.0 to 3.0.0-alpha.1
@@ -229,3 +229,3 @@ 'use strict'; | ||
}); | ||
var _f = reactHookForm.useForm(), register = _f.register, watch = _f.watch; | ||
var _g = reactHookForm.useForm(), register = _g.register, watch = _g.watch; | ||
var searchTerm = watch('search', ''); | ||
@@ -293,3 +293,3 @@ React.useEffect(function () { | ||
var isTouched = !!reactHookForm.get(formStateRef.current.touchedFields, name); | ||
var isNative = value.ref.type; | ||
var isNative = !!(value && value._f.ref.type); | ||
var isDirty = !!reactHookForm.get(formStateRef.current.dirtyFields, name); | ||
@@ -296,0 +296,0 @@ var hasError = !!error; |
@@ -223,3 +223,3 @@ import { createElement, useState, useEffect, Fragment } from 'react'; | ||
}); | ||
var _f = useForm(), register = _f.register, watch = _f.watch; | ||
var _g = useForm(), register = _g.register, watch = _g.watch; | ||
var searchTerm = watch('search', ''); | ||
@@ -287,3 +287,3 @@ useEffect(function () { | ||
var isTouched = !!get(formStateRef.current.touchedFields, name); | ||
var isNative = value.ref.type; | ||
var isNative = !!(value && value._f.ref.type); | ||
var isDirty = !!get(formStateRef.current.dirtyFields, name); | ||
@@ -290,0 +290,0 @@ var hasError = !!error; |
{ | ||
"name": "@hookform/devtools", | ||
"version": "3.0.0-alpha.0", | ||
"version": "3.0.0-alpha.1", | ||
"description": "React Hook Form dev tool to help debugging forms", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
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
506257