mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-17 23:13:51 +01:00
Fix(ish) multiwindow updates
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user