Skip to content

Commit fef403a

Browse files
committed
Add react-hooks/exhaustive-deps to errors, and fix the only place where it happened
1 parent ba76426 commit fef403a

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

aiarena/frontend-spa/eslint.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ export default tseslint.config(
1919
},
2020
rules: {
2121
...reactHooks.configs.recommended.rules,
22+
"react-hooks/exhaustive-deps": "error",
2223
"react-refresh/only-export-components": [
2324
"warn",
2425
{ allowConstantExport: true },

aiarena/frontend-spa/src/_pages/UserMatchRequests/UserMatchRequestsTable.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ export default function UserMatchRequestsTable(
345345
meta: { priority: 1 },
346346
}),
347347
],
348-
[columnHelper],
348+
[columnHelper, hideSpoilers],
349349
);
350350

351351
const { loadMoreRef } = useInfiniteScroll(() => loadNext(50), hasNext);

0 commit comments

Comments
 (0)