We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 187b55a + 84a7207 commit 89a466bCopy full SHA for 89a466b
src/backend/routers/snapShot.ts
@@ -28,10 +28,12 @@ export default function updateAndSendSnapShotTree(fiberRoot: FiberRoot): void {
28
// this postMessage will be sending the most up-to-date snapshot of the current React Fiber Tree
29
// the postMessage action will be received on the content script to later update the tabsObj
30
// this will fire off everytime there is a change in test application
31
+ // convert the payload from a fiber tree to an object to avoid a data clone error when postMessage processes the argument
32
+ const obj = JSON.parse(JSON.stringify(payload));
33
window.postMessage(
34
{
35
action: 'recordSnap',
- payload,
36
+ payload: obj,
37
},
38
'*',
39
);
0 commit comments