React.useEffect((): void => {
    if (!firstRun.current) {
      setStateRef.current(runValidate(validate));
    }
  }, [validate]);