Skip to content

Commit

Permalink
remove ref dep
Browse files Browse the repository at this point in the history
  • Loading branch information
williaster committed Dec 20, 2024
1 parent f9f9830 commit 4921403
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/visx-demo/src/components/GalleryTile.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useEffect, useRef, useState } from 'react';
import React, { useCallback, useEffect, useRef, useState } from 'react';

Check failure on line 1 in packages/visx-demo/src/components/GalleryTile.tsx

View workflow job for this annotation

GitHub Actions / build

'useCallback' is defined but never used
import Link from 'next/link';
import ParentSize from '@visx/responsive/lib/components/ParentSize';
import { WidthAndHeight } from '../types';
Expand Down Expand Up @@ -50,7 +50,7 @@ function useEverVisible() {
observer.unobserve(curr);
}
};
}, [ref]);
}, []);

return { everVisible, ref };
}
Expand Down

0 comments on commit 4921403

Please sign in to comment.