I have a situation where i want to pass props to InnerBlocks
just like I would be able to pass props to child components. The situation is, that I have a parent block that has a function to update its height, based on some InnerBlocks and their content / settings.
I want to call that function, when a user clicks the child block.
e.g.
<div onClick={ parent.updateHeight }> content </div>
How can that be achieved? I know that parent and child attributes are accessible with select
calls but can I also pass functions?