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