Skip to content

Commit 5b4e1ad

Browse files
committed
Comments for index.js
1 parent 3c9ca56 commit 5b4e1ad

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

package/index.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/**
2+
* 'reactime' module has a single export
3+
* @function linkFiber
4+
*/
5+
6+
// * State object initialized here
17
const snapShot = { tree: null };
28

39
const mode = {
@@ -21,7 +27,8 @@ function getRouteURL(node) {
2127
}
2228
}
2329

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 } }) => {
2532
switch (action) {
2633
case 'jumpToSnap':
2734
timeJump(payload);

0 commit comments

Comments
 (0)