Fix(ish) multiwindow updates

This commit is contained in:
Gregory Schier
2023-03-29 11:15:37 -07:00
parent ded33a110a
commit 8eab6e14db
4 changed files with 59 additions and 35 deletions

View File

@@ -125,8 +125,12 @@ export const RequestPane = memo(function RequestPane({ style, fullHeight, classN
[],
);
const forceUpdateKey =
activeRequest?.updatedBy === appWindow.label ? undefined : activeRequest?.updatedAt;
const forceUpdateKey = useMemo(() => {
if (activeRequest == null) return undefined;
if (activeRequest.updatedBy === appWindow.label) return appWindow.label;
return `${appWindow.label}::${activeRequest?.updatedAt}`;
}, [activeRequest]);
console.log('FORCE UPDATE KEY', forceUpdateKey);
return (
<div