Compare discovered SSH row props by value

Co-authored-by: Julius Marminge <[email protected]>
This commit is contained in:
Cursor AgentandJulius Marminge committed 2026-06-25 16:34:00 +00:00
1 parent 509ac3fa68
commit 0bab6801ec
1 file changed
+16 -1
@@ -1561,7 +1561,22 @@ const DesktopSshHostRow = memo(function DesktopSshHostRow({
</div>
</div>
);
});
}, areDesktopSshHostRowPropsEqual);
function areDesktopSshHostRowPropsEqual(
previous: Readonly<DesktopSshHostRowProps>,
next: Readonly<DesktopSshHostRowProps>,
): boolean {
return (
previous.connectingHostAlias === next.connectingHostAlias &&
previous.onConnect === next.onConnect &&
previous.target.alias === next.target.alias &&
previous.target.hostname === next.target.hostname &&
previous.target.username === next.target.username &&
previous.target.port === next.target.port &&
previous.target.source === next.target.source
);
}
function CloudLinkSwitch({
checked,