How are edit methods dissected when displaying the editor? #12227
Labels
Needs Technical Feedback
Needs testing from a developer perspective.
[Type] Help Request
Help with setup, implementation, or "How do I?" questions.
[Type] Question
Questions about the design or development of the editor.
When constructing a block the
edit
method might include components such asInspectorControls
andBlockControls
to add settings in the sidebar/block toolbar. I would like to know how these components make it into the sidebar and block settings when the editor loads.I imagine when a block is selected the sidebar will somehow look at the construction of the component and if it finds an
InspectorControls
component it loads it. Potentially something to do with the active component being passed into the sidebar as a prop then mapping through the children of the prop?Could someone explain what's happening or link me to a doc/article that explains it?
Thanks
The text was updated successfully, but these errors were encountered: