bobbingwide / sb-children-block

List children of the current content as links.
2 stars 0 forks source link

Children block not rendering in the editor #14

Closed bobbingwide closed 1 year ago

bobbingwide commented 3 years ago

Since Gutenberg 10.4.0 the Children block doesn't produce any results in the block editor.

Also, it seems that the Parent block and the Fields block no longer displays anything. The post ID of the current post is not being passed to the server side rendering.

bobbingwide commented 2 years ago

I believe the solution to this is to use useBlockProps() in the editor and to wrap the Server Side rendering with get_block_wrapper_attributes().

This will also enable adding supports attributes such as:

See also #15

bobbingwide commented 1 year ago

This was fixed in v1.2.0. See #15 for the commit history.