From 547369002e94355d3619fb134bf826e1a7784510 Mon Sep 17 00:00:00 2001 From: SanjayLavingia <64515025+SanjayLavingia@users.noreply.github.com> Date: Sun, 25 Oct 2020 08:51:24 -0700 Subject: [PATCH 1/3] (removed) logging in index.ts within backend. This was causing the unwanted logs while firing actions from Reactime frontend --- src/backend/index.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/backend/index.ts b/src/backend/index.ts index a7714e4a8..4699cf0b2 100644 --- a/src/backend/index.ts +++ b/src/backend/index.ts @@ -44,7 +44,6 @@ function getRouteURL(node: SnapshotNode): string { // * Event listener for time-travel actions window.addEventListener('message', ({ data: { action, payload } }: MsgData) => { - console.log('payload',action) switch (action) { case 'jumpToSnap': timeJump(payload, true); // * This sets state with given payload From 9815045b82fbe97bb2c13d66a8ed26656b2befdd Mon Sep 17 00:00:00 2001 From: SanjayLavingia <64515025+SanjayLavingia@users.noreply.github.com> Date: Sun, 25 Oct 2020 08:52:38 -0700 Subject: [PATCH 2/3] (cleaned) linkFiber in preparation for adding comments for new addions --- src/backend/linkFiber.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/backend/linkFiber.ts b/src/backend/linkFiber.ts index b0230e865..424144bd3 100644 --- a/src/backend/linkFiber.ts +++ b/src/backend/linkFiber.ts @@ -288,7 +288,6 @@ function createTree( (tag === 0 || tag === 1 || tag === 2 || tag === 10) && isRecoil === true ) { - // console.log('Recoil Hooks Algo', currentFiber) if (memoizedState.queue) { // Hooks states are stored as a linked list using memoizedState.next, // so we must traverse through the list and get the states. @@ -322,7 +321,6 @@ function createTree( (tag === 0 || tag === 1 || tag === 2 || tag === 10) && isRecoil === false ) { - // console.log('Regular Hooks Algo', currentFiber) if (memoizedState.queue) { // Hooks states are stored as a linked list using memoizedState.next, // so we must traverse through the list and get the states. @@ -351,7 +349,6 @@ function createTree( // This grabs stateless components if (!componentFound && (tag === 0 || tag === 1 || tag === 2)) { - // console.log('Stateless Algo', currentFiber) newState = 'stateless'; } From c88035373fce1c711417b5647fb0943198b1e874 Mon Sep 17 00:00:00 2001 From: SanjayLavingia <64515025+SanjayLavingia@users.noreply.github.com> Date: Sun, 25 Oct 2020 08:55:07 -0700 Subject: [PATCH 3/3] (cleaned) background.js in preperation for comments --- src/extension/background.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/extension/background.js b/src/extension/background.js index d6bdfb757..03e33b6d8 100644 --- a/src/extension/background.js +++ b/src/extension/background.js @@ -341,7 +341,6 @@ chrome.runtime.onMessage.addListener((request, sender) => { default: break; } - // console.log('inside background.js, tabsObj:', tabsObj); return true; // attempt to fix close port error });