mirror of https://github.com/fantasticit/think.git
commit
63aff8bbdd
|
@ -1,7 +1,7 @@
|
|||
import { useCallback, useEffect, useRef, useState } from 'react';
|
||||
|
||||
import { useIsomorphicLayoutEffect } from './use-isomorphic-layout-effect';
|
||||
import { useToggle } from './use-toggle';
|
||||
import { useIsomorphicLayoutEffect } from './user-isomorphic-layout-effect';
|
||||
|
||||
export const useInterval = (callback: () => void, delay: number) => {
|
||||
const savedCallback = useRef(callback);
|
||||
|
|
Loading…
Reference in New Issue