Skip to content

Commit 6eca8ef

Browse files
IDrissAitHafidIdriss AITHAFID
andauthored
updating the informations needed when adding a root node to a tree in react-devtools overview doc (facebook#19979)
Co-authored-by: Idriss AITHAFID <Idriss.AITHAFID@um6p.ma>
1 parent 4ead6b5 commit 6eca8ef

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

packages/react-devtools/OVERVIEW.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,20 +49,22 @@ Later operations will reference strings by a one-based index. For example, `1` w
4949

5050
#### Adding a root node
5151

52-
Adding a root to the tree requires sending 4 numbers:
52+
Adding a root to the tree requires sending 5 numbers:
5353

5454
1. add operation constant (`1`)
5555
1. fiber id
56-
1. element type constant (`8 === ElementTypeRoot`)
56+
1. element type constant (`11 === ElementTypeRoot`)
5757
1. profiling supported flag
58+
1. owner metadata flag
5859

5960
For example, adding a root fiber with an id of 1:
6061
```js
6162
[
6263
1, // add operation
6364
1, // fiber id
64-
8, // ElementTypeRoot
65+
11, // ElementTypeRoot
6566
1, // this root's renderer supports profiling
67+
1, // this root has owner metadata
6668
]
6769
```
6870

0 commit comments

Comments
 (0)