feat(page): Optimize data handling with useMemo for boards, agents, and gateways

This commit is contained in:
Abhimanyu Saharan
2026-02-05 00:11:48 +05:30
parent 1889ac997e
commit 8f224910b5
6 changed files with 7 additions and 14 deletions

View File

@@ -72,7 +72,7 @@ export default function GatewaysPage() {
}
);
const gateways = gatewaysQuery.data ?? [];
const gateways = useMemo(() => gatewaysQuery.data ?? [], [gatewaysQuery.data]);
const sortedGateways = useMemo(() => [...gateways], [gateways]);
const deleteMutation = useAuthedMutation<
@@ -193,6 +193,7 @@ export default function GatewaysPage() {
[]
);
// eslint-disable-next-line react-hooks/incompatible-library
const table = useReactTable({
data: sortedGateways,
columns,