Skip to content

Commit 646b20e

Browse files
committed
Remove unused abortControllerRef
1 parent 1b821ae commit 646b20e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/components/Buckets.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Helmet } from '@dr.pogodin/react-helmet';
2-
import React, { type JSX, useEffect, useRef, useState } from 'react';
2+
import React, { type JSX, useEffect, useState } from 'react';
33
import { Col, Container, Form, InputGroup, Row } from 'react-bootstrap';
44
import Table from 'react-bootstrap/Table';
55
import { Link } from 'react-router-dom';
@@ -51,7 +51,6 @@ const sortResults = (buckets: Bucket[], sortOrder: number): Bucket[] => {
5151
};
5252

5353
const Buckets = (): JSX.Element => {
54-
const abortControllerRef = useRef<AbortController | null>(null);
5554
const [searching, setSearching] = useState<boolean>(false);
5655
const [results, setResults] = useState<Bucket[]>([]);
5756

@@ -63,7 +62,6 @@ const Buckets = (): JSX.Element => {
6362
useEffect(() => {
6463
// Create a new AbortController for this effect
6564
const abortController = new AbortController();
66-
abortControllerRef.current = abortController;
6765

6866
setSearching(true);
6967
setResults([]);

0 commit comments

Comments
 (0)