I got error when i want to set if in customHook Code
After this i got error ->
React Hook "" is called conditionally. React Hooks must be called in the exact same order in every component render
Problem is if statment when call this work good ( without if ) ->
const =(,());
I wan't to load useDataForm ( custom hook ) if dataValid not valid and filled.