WordPress compose/data API
-
Hi I’m trying to dynamically append some blocks to my custom InnerBlock
basically I’m trying to recreate a Select-Tab plugin that generates the Tabs and for each tab contains a template ‘core/group’.
the structure is this
block/select-tabs > [ block/tab > core/group > (any core component)]
All I need to do is to generate N amount of default block/tabs from my props.attributes such as block/select-tabs has already the N amount of tabs when used in the Gutenberg editor.
I’ve been looking everywhere I could but it is not clear to me how should I write this, I found something about the useSelect/useDispatch but I’m unable to find the methods within my IDE which is why I am here asking for a direction.when I duplicate the ‘block/tab’ it works in the editor so the initial setup is fine, I am asking how do I self document myself to expose all the methods usable by the select/dispatch useSelect/useDispatch withSelect/withDispatch
The topic ‘WordPress compose/data API’ is closed to new replies.