Skip to content

Commit

Permalink
Schema-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
henit committed Nov 13, 2023
1 parent 5f17902 commit e7201ac
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -283,8 +283,8 @@ export default function useDataValue<
clearErrorState,
])

useUpdateEffect(() => {
if (typeof schema !== 'object') {
useEffect(() => {
if (!schema) {
return
}
schemaValidatorRef.current = ajv.compile(schema)
Expand Down

0 comments on commit e7201ac

Please sign in to comment.