@samitouri / QOS-React-2 / commits / 6eca8eff08

updating the informations needed when adding a root node to a tree in react-devtools overview doc (#19979)

Co-authored-by: Idriss AITHAFID <Idriss.AITHAFID@um6p.ma>

IDrissAitHafid committed Oct 8, 2020 at 13:46 UTC 6eca8eff08e293229c2ff957f175573faf994fc0
1 file changed +5 -3
packages/react-devtools/OVERVIEW.md
+5 -3
@@ -49,20 +49,22 @@ Later operations will reference strings by a one-based index. For example, `1` w
49
50 #### Adding a root node
51
52 -Adding a root to the tree requires sending 4 numbers:
52 +Adding a root to the tree requires sending 5 numbers:
53
54 1. add operation constant (`1`)
55 1. fiber id
56 -1. element type constant (`8 === ElementTypeRoot`)
56 +1. element type constant (`11 === ElementTypeRoot`)
57 1. profiling supported flag
58 +1. owner metadata flag
59
60 For example, adding a root fiber with an id of 1:
61 ```js
62 [
63 1, // add operation
64 1, // fiber id
64 - 8, // ElementTypeRoot
65 + 11, // ElementTypeRoot
66 1, // this root's renderer supports profiling
67 + 1, // this root has owner metadata
68 ]
69 ```
70