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
// -----------------TRIMMING PASSED IN FIBER ROOT DATA--------------------------
198
+
/**
199
+
* This recursive function is used to grab the state of children components
200
+
and push them into the parent componenent react elements throw errors on client side of application - convert react/functions into string
201
+
*
202
+
* @param reactDevData - The data object obtained from React Devtool. Ex: memoizedProps, memoizedState
203
+
* @param reactimeData - The updated data object to send to front end of Reactime.
204
+
* @param depth - reactDevData is nested object. The value in reactDevData can be another object. Depth is use to keep track the depth during the unraveling of nested object
205
+
* @returns reactimeData - the updated data object to send to front end of ReactTime
// -------------------------CREATE TREE TO SEND TO FRONT END--------------------
227
229
/**
228
230
* Every time a state change is made in the accompanying app, the extension creates a Tree “snapshot” of the current state, and adds it to the current “cache” of snapshots in the extension
231
+
*
232
+
* @param currentFiber
233
+
* @param tree
234
+
* @param fromSibling
235
+
* @returns
229
236
*/
230
237
functioncreateTree(
231
238
currentFiber: Fiber,
@@ -262,6 +269,8 @@ function createTree(
262
269
elementType,
263
270
memoizedProps,
264
271
memoizedState,
272
+
dependencies,
273
+
_debugHookTypes,
265
274
});
266
275
267
276
// Tag === 5 signify this is a React Fragment. Each JSX component return a React fragment => The parent of a React Fragment could be a JSX component
@@ -304,12 +313,12 @@ function createTree(
304
313
305
314
// check to see if the parent component has any state/props
0 commit comments