message: revert: revert usePersistFn
diff: -import { useRef, useEffect } from 'react';
  +import { useRef } from 'react';
  export type noop = (...args: any[]) => any;
  function usePersistFn<T extends noop>(fn: T) {
  const fnRef = useRef<T>(fn);
  - useEffect(() => {
  fnRef.current = fn;
  - }, [fn]);
  const persistFn = useRef<T>();
  if (!persistFn.current) {
  