You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Each time it's returning -1. One of required arguments is editor state. So question is - how can i get this editor state. It should be obvious but seems like i missed something.
Thanks for help, appreciate your attention a lot!
The text was updated successfully, but these errors were encountered:
That said, you probably want to use the withSelect higher order component (it will automatically pass the state value, you should only pass the remaining arguments).
Hello! I have a pretty easy goal - i have parent component which has
<InnerBlocks/>
. Each inner block has index when i inspecting him via React dev tools. I want to get index of each inner block component by using method from gutenberg documentation: https://wordpress.org/gutenberg/handbook/designers-developers/developers/data/data-core-editor/#getblockindexEach time it's returning
-1
. One of required arguments iseditor state
. So question is - how can i get thiseditor state
. It should be obvious but seems like i missed something.Thanks for help, appreciate your attention a lot!
The text was updated successfully, but these errors were encountered: