Updated OVERVIEW.md to the new infos required when adding a new leaf node to the tree (#19981)
Co-authored-by: Idriss AITHAFID <Idriss.AITHAFID@um6p.ma>
IDrissAitHafid committed
Oct 9, 2020 at 14:29 UTC
48907797294340b6d5d8fecfbcf97edf0691888d
1 file changed
+1
-2
packages/react-devtools/OVERVIEW.md
+1
-2
@@ -70,7 +70,7 @@ For example, adding a root fiber with an id of 1:
70
71
#### Adding a leaf node
72
73
-Adding a leaf node takes a variable number of numbers since we need to decode the name (and potentially the key):
73
+Adding a leaf node to the tree requires sending 7 numbers:
74
75
1. add operation constant (`1`)
76
1. fiber id
@@ -88,7 +88,6 @@ For example, adding a function component `<Foo>` with an id 2:
88
1, // ElementTypeClass
89
1, // parent id
90
0, // owner id
91
- 3, // encoded display name size
91
1, // id of "Foo" displayName in the string table
92
0, // id of null key in the string table (always zero for null)
93
]