From ddf1de9f4543c1188772b60610fab50338975b9a Mon Sep 17 00:00:00 2001 From: ST-Ko Date: Wed, 23 Oct 2024 00:53:43 +1100 Subject: [PATCH] Add comment to useEffect explaining its usage --- src/components/CompareResults/ResultsTable.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/CompareResults/ResultsTable.tsx b/src/components/CompareResults/ResultsTable.tsx index 5a935275e..fd0ee1586 100644 --- a/src/components/CompareResults/ResultsTable.tsx +++ b/src/components/CompareResults/ResultsTable.tsx @@ -107,6 +107,8 @@ export default function ResultsTable() { new Map() as Map>, // ColumnID -> Set ); + // This useEffect is to extract filter params from the URL (via rawSearchParams) + // and updates the tableFilters state. useEffect(() => { const filters = Array.from(rawSearchParams.entries()) .filter(([key]) => key.startsWith('filter'))