Skip to content

Commit 2eaf060

Browse files
authored
Update createTree.ts
1 parent b02dc1b commit 2eaf060

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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);

0 commit comments

Comments
 (0)