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 2d25e6d + 31a6c8f commit e09570dCopy full SHA for e09570d
package/linkFiber.js
@@ -65,6 +65,10 @@ module.exports = (snap, mode) => {
65
const { _reactRootContainer: { _internalRoot } } = container;
66
fiberRoot = _internalRoot;
67
updateSnapShotTree();
68
- sendSnapshot();
+
69
+ // send the initial snapshot once the content script has started up
70
+ window.addEventListener('message', ({ data: { action } }) => {
71
+ if (action === 'contentScriptStarted') sendSnapshot();
72
+ });
73
};
74
0 commit comments