You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/backend/controllers/createTree.ts
+1-36Lines changed: 1 addition & 36 deletions
Original file line number
Diff line number
Diff line change
@@ -152,42 +152,7 @@ export default function createTree(currentFiberNode: Fiber): Tree {
152
152
}
153
153
}
154
154
155
-
// COMMENT OUT SINCE EXTRACTING CONTEXT IS STILL IN EXPERIMENT
156
-
// // ------------APPEND CONTEXT DATA FROM REACT DEV TOOL----------------
157
-
// // memoizedState
158
-
// // Note: if user use ReactHook, memoizedState.memoizedState can be a falsy value such as null, false, ... => need to specify this data is not undefined
159
-
// if (
160
-
// (tag === FunctionComponent || tag === ClassComponent || tag === IndeterminateComponent) &&
161
-
// memoizedState?.memoizedState !== undefined
162
-
// ) {
163
-
// // If user uses Redux, context data will be stored in memoizedState of the Provider component => grab context object stored in the memoizedState
// // if user uses useContext hook, context data will be stored in memoizedProps.value of the Context.Provider component => grab context object stored in memoizedprops
179
-
// // Different from other provider, such as Routes, BrowserRouter, ReactRedux, ..., Context.Provider does not have a displayName
180
-
// // TODO: need to render this context provider when user use useContext hook.
181
-
//
182
-
//
183
-
// if (tag === ContextProvider && !elementType._context.displayName) {
0 commit comments