We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1fa49b8 commit 29b6194Copy full SHA for 29b6194
libs/ui-lib/lib/cim/components/InfraEnv/InfraEnvAgentTable.tsx
@@ -109,8 +109,14 @@ const InfraEnvAgentTable: React.FC<InfraEnvAgentTableProps> = ({
109
},
110
);
111
const { t } = useTranslation();
112
- const agentStatuses = agentStatus(t);
113
- const bmhStatuses = bmhStatus(t);
+ const { agentStatuses, bmhStatuses } = React.useMemo(
+ () => ({
114
+ agentStatuses: agentStatus(t),
115
+ bmhStatuses: bmhStatus(t),
116
+ }),
117
+ [t],
118
+ );
119
+
120
const {
121
statusCount,
122
hostnameFilter,
0 commit comments