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/types/backendTypes.ts
+11-2Lines changed: 11 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -44,6 +44,7 @@ export interface MsgData {
44
44
* @type ComponentData -
45
45
* @member actualDuration - The time taken to render the current Fiber node and its descendants during the previous render cycle. This value is used to optimize the rendering of components and to provide performance metrics to developers.
46
46
* @member actualStartTime - The time at which the rendering of the current Fiber node started during the previous render cycle.
47
+
* @member key - The key a user assigned to the component or null if they didn't assign one
47
48
* @member context - {in experiment} - An object contains all context information of the current component
48
49
* @member index - {class component only} - The index of the bound setState method stored in `componentActionsRecord`
49
50
* @member hooksState - {functional component only} - An object contains all states of the current functional component
* @member actualStartTime - The time at which the rendering of the current Fiber node started during the previous render cycle.
155
158
* @member child - Pointer to the first child.
156
159
* @member elementType - The type of the current Fiber node's element (e.g. the component function or class, or the DOM element type). For class/functional component, elmementType stores the function definition.
160
+
* @member key - The key a user assigned to the component or null if they didn't assign one
157
161
* @member memoizedProps - The current props of the component associated with the current Fiber node.
158
162
* @member memoizedState - The current state of the component associated with the current Fiber node.
159
163
* @member selfBaseDuration - The base duration of the current Fiber node's render phase (excluding the time taken to render its children). This field is only set when the enableProfilerTimer flag is enabled.
@@ -191,10 +195,15 @@ export type Fiber = {
191
195
*/
192
196
elementType: any;
193
197
194
-
/** The current props of the component associated with the current Fiber node. */
198
+
/**
199
+
* Unique key string assigned by the user when making component on null if they didn't assign one
200
+
*/
201
+
key: string|null;
202
+
203
+
/** The current state for a functional component associated with the current Fiber node. */
195
204
memoizedState: any;
196
205
197
-
/** The current state of the component associated with the current Fiber node. */
206
+
/** The current props of the component associated with the current Fiber node. */
0 commit comments