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.
1 parent 3c9ca56 commit 5b4e1adCopy full SHA for 5b4e1ad
package/index.js
@@ -1,3 +1,9 @@
1
+/**
2
+ * 'reactime' module has a single export
3
+ * @function linkFiber
4
+ */
5
+
6
+// * State object initialized here
7
const snapShot = { tree: null };
8
9
const mode = {
@@ -21,7 +27,8 @@ function getRouteURL(node) {
21
27
}
22
28
23
29
24
-window.addEventListener('message', ({ data: { action, payload } }) => { // runs automatically twice per second with inspectedElement
30
+// * Event listener for time-travel actions
31
+window.addEventListener('message', ({ data: { action, payload } }) => {
25
32
switch (action) {
26
33
case 'jumpToSnap':
34
timeJump(payload);
0 commit comments