From 6eca8eff08e293229c2ff957f175573faf994fc0 Mon Sep 17 00:00:00 2001 From: IDrissAitHafid <31975500+IDrissAitHafid@users.noreply.github.com> Date: Thu, 8 Oct 2020 13:46:15 +0100 Subject: [PATCH] updating the informations needed when adding a root node to a tree in react-devtools overview doc (#19979) Co-authored-by: Idriss AITHAFID --- packages/react-devtools/OVERVIEW.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/react-devtools/OVERVIEW.md b/packages/react-devtools/OVERVIEW.md index fa9fc8c1bdd7b..19b54f0124af4 100644 --- a/packages/react-devtools/OVERVIEW.md +++ b/packages/react-devtools/OVERVIEW.md @@ -49,20 +49,22 @@ Later operations will reference strings by a one-based index. For example, `1` w #### Adding a root node -Adding a root to the tree requires sending 4 numbers: +Adding a root to the tree requires sending 5 numbers: 1. add operation constant (`1`) 1. fiber id -1. element type constant (`8 === ElementTypeRoot`) +1. element type constant (`11 === ElementTypeRoot`) 1. profiling supported flag +1. owner metadata flag For example, adding a root fiber with an id of 1: ```js [ 1, // add operation 1, // fiber id - 8, // ElementTypeRoot + 11, // ElementTypeRoot 1, // this root's renderer supports profiling + 1, // this root has owner metadata ] ```