How to get the selected block instance and force an update?
-
I’m not finding any option to get the current block added to the editor and I couldn’t force an update using the React function
forceUpdate()
, there is no implementation for that.I found this on documentation but I can’t use it. Or i just don’t know how to interact with React.
www.ads-software.com/gutenberg/handbook/data/data-core-editor/#getselectedblock
Another thing would be an action hook to fire after a new block is added to the editor. Is this available?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘How to get the selected block instance and force an update?’ is closed to new replies.