@@ -60,7 +60,6 @@ export default function createTree(currentFiberNode: Fiber): Tree {
6060 treeBaseDuration,
6161 // _debugHookTypes, //COMMENT OUT SINCE EXTRACTING CONTEXT IS STILL IN EXPERIMENT
6262 } = currentFiberNode ;
63- // console.log('current fiber node from createTree', currentFiberNode);
6463
6564 // Obtain component name:
6665 /** Name of the current component */
@@ -156,8 +155,6 @@ export default function createTree(currentFiberNode: Fiber): Tree {
156155 // // Different from other provider, such as Routes, BrowswerRouter, ReactRedux, ..., Context.Provider does not have a displayName
157156 // // TODO: need to render this context provider when user use useContext hook.
158157 //
159- // we want to grab the state that's being changed in this specific use context
160- // "this is using usecontext, here is the context(state)"
161158 //
162159 // if (tag === ContextProvider && !elementType._context.displayName) {
163160 // let stateData = memoizedProps.value;
@@ -198,8 +195,7 @@ export default function createTree(currentFiberNode: Fiber): Tree {
198195 const hooksStates = getHooksStateAndUpdateMethod ( memoizedState ) ;
199196 // Obtain variable names by parsing the function definition stored in elementType.
200197 const hooksNames = getHooksNames ( elementType . toString ( ) ) ;
201- // console.log(hooksStates);
202- // console.log(hooksNames);
198+
203199 // Intialize state & index:
204200 componentData . hooksState = { } ;
205201 componentData . hooksIndex = [ ] ;
@@ -264,7 +260,7 @@ export default function createTree(currentFiberNode: Fiber): Tree {
264260 }
265261
266262 // ------------RETURN THE TREE OUTPUT & PASS TO FRONTEND FOR RENDERING------
267- // console.log('this is a test for jackie pls');
263+
268264 return tree ;
269265 }
270266}
0 commit comments