From 3bd5d456216fe72c2506258431daf9fb26b51fa5 Mon Sep 17 00:00:00 2001 From: * <*> Date: Mon, 14 Nov 2022 18:37:15 +0800 Subject: [PATCH] Match-id-1f56d48f42d368d727c6a47fd2d56ee9b3603fc6 --- libs/horizon/src/horizonx/proxy/handlers/ObjectProxyHandler.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libs/horizon/src/horizonx/proxy/handlers/ObjectProxyHandler.ts b/libs/horizon/src/horizonx/proxy/handlers/ObjectProxyHandler.ts index a231988e..18ce8f1b 100644 --- a/libs/horizon/src/horizonx/proxy/handlers/ObjectProxyHandler.ts +++ b/libs/horizon/src/horizonx/proxy/handlers/ObjectProxyHandler.ts @@ -70,6 +70,7 @@ export function get(rawObj: object, key: string | symbol, receiver: any, singleL } export function set(rawObj: object, key: string, value: any, receiver: any): boolean { + const oldObject = JSON.stringify(rawObj); const observer = getObserver(rawObj); if (value && key == 'removeListener') { @@ -89,5 +90,6 @@ export function set(rawObj: object, key: string, value: any, receiver: any): boo observer.setProp(key); } + console.log('mutation from: ', JSON.parse(oldObject), ' to: ', ret); return ret; }