Skip to content

Commit

Permalink
refactor: Remove the unnecessary logic (#1928)
Browse files Browse the repository at this point in the history
  • Loading branch information
Flcwl committed Oct 27, 2022
1 parent 9fb353c commit 1f2c1b4
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion packages/hooks/src/useUnmountedRef/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { useEffect, useRef } from 'react';
const useUnmountedRef = () => {
const unmountedRef = useRef(false);
useEffect(() => {
unmountedRef.current = false;
return () => {
unmountedRef.current = true;
};
Expand Down

0 comments on commit 1f2c1b4

Please sign in to comment.