Skip to content

Commit c54b994

Browse files
committed
dbeaver/pro#7023 refactor: remove redundant clearTrackedCellSubscriptions
Cleanup implemented in useTrackedGridSearchCellSubscriptions hook
1 parent d8fa299 commit c54b994

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

webapp/common-react/@dbeaver/react-data-grid/src/search/useGridSearch.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -454,9 +454,8 @@ export function useGridSearch(options: IGridSearchOptions): IGridSearchResult {
454454
useEffect(
455455
() => () => {
456456
cellListenersRef.current.clear();
457-
clearTrackedCellSubscriptions();
458457
},
459-
[clearTrackedCellSubscriptions],
458+
[],
460459
);
461460

462461
const snapshot = useMemo<IGridSearchSnapshot>(

0 commit comments

Comments
 (0)