Skip to content

Commit 017987e

Browse files
committed
Merge branch 'nick' of github.com:oslabs-beta/reactime into nick
2 parents f9c1857 + 80348d6 commit 017987e

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

src/app/components/StateRoute/StateRoute.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,9 @@ const NO_STATE_MSG = 'No state change detected. Trigger an event to change state
2222

2323

2424
const StateRoute = (props: StateRouteProps) => {
25-
const { snapshot, hierarchy, snapshots, viewIndex, webMetrics, currLocation } = props;
25+
const { snapshot, hierarchy, snapshots, viewIndex, webMetrics, currLocation } = props;
2626
const [{ tabs, currentTab }, dispatch] = useStoreContext();
2727
const { hierarchy, sliderIndex, viewIndex } = tabs[currentTab];
28-
console.log()
2928

3029
// Map
3130
const renderComponentMap = () => {

src/backend/controllers/createTree.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ import {
3232
* @param currentFiberNode A Fiber object
3333
* @return An instance of a Tree object
3434
*/
35-
// TODO: Not sure why the ritd need to be outside of the _createTree function. Want to put inside, but in case this need to be keep track for front end.
35+
// TODO: Not sure why the ritd need to be outside of the _createTree function. Want to put inside, but in case this need to be keep track for front end.
3636
export default function createTree(currentFiberNode: Fiber): Tree {
3737
let rtidCounter: number = 0;
3838
return _createTree(currentFiberNode, new Tree('root', 'root'));
@@ -192,7 +192,7 @@ export default function createTree(currentFiberNode: Fiber): Tree {
192192
// ---------OBTAIN STATE & SET STATE METHODS FROM CLASS COMPONENT-----------
193193
// Check if currentFiberNode is a stateful class component when user use setState.
194194
// If user use setState to define/manage state, the state object will be stored in stateNode.state => grab the state object stored in the stateNode.state
195-
// Example: for tic-tac-toe demo-app: Board is a stateful component that use setState to store stat
195+
// Example: for tic-tac-toe demo-app: Board is a stateful component that use setState to store state data.
196196
if ((tag === ClassComponent || tag === IndeterminateComponent) && stateNode?.state) {
197197
// Save component's state and setState() function to our record for future time-travel state changing. Add record index to snapshot so we can retrieve.
198198
componentData.index = componentActionsRecord.saveNew(stateNode);

src/backend/routers/snapShot.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import createTree from '../controllers/createTree';
1313
*/
1414
// updating tree depending on current mode on the panel (pause, etc)
1515
export default function updateAndSendSnapShotTree(fiberRoot: FiberRoot): void {
16-
1716
// This is the currently active root fiber(the mutable root of the tree)
1817
const { current } = fiberRoot;
1918
// Clear all of the legacy actions from old fiber tree because we are about to create a new one
@@ -30,7 +29,6 @@ export default function updateAndSendSnapShotTree(fiberRoot: FiberRoot): void {
3029
// the postMessage action will be received on the content script to later update the tabsObj
3130
// this will fire off everytime there is a change in test application
3231
// convert the payload from a fiber tree to an object to avoid a data clone error when postMessage processes the argument
33-
// compare payload and clonedDeepPayload with isIdentical
3432
const obj = JSON.parse(JSON.stringify(payload));
3533
window.postMessage(
3634
{

0 commit comments

Comments
 (0)