Skip to content

Commit a830395

Browse files
Copilothotlong
andcommitted
fix(plugin-aggrid): Fix lint error for missing useCallback dependency
- Add 'callbacks' to useCallback dependency array in getContextMenuItems - Fixes react-hooks/exhaustive-deps lint error - All tests pass (8/8) - Build successful Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent 3742699 commit a830395

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/plugin-aggrid/src/AgGridImpl.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ export default function AgGridImpl({
176176
}
177177

178178
return items;
179-
}, [contextMenu, handleExportCSV]);
179+
}, [contextMenu, handleExportCSV, callbacks]);
180180

181181
// Event handlers
182182
const handleCellClicked = useCallback((event: CellClickedEvent) => {

0 commit comments

Comments
 (0)