Why select(blockEditorStore).getBlocks(clientId) return empty array for block rendered in Editor > Templates > All Templates window #63214
Replies: 1 comment
-
I'm sorry, but I don’t see any errors in my code, I assume that this is a bug in WordPress or Gutenberg, please help me |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I have a simple nested inner block that causes it preview in Editor > Templates > All Templates window to show me empty or blank preview rectangles instead of page preview
Take a look at Design collapse in the Sidebar and Editor > Templates window, they are empty because all blocks are inserted inside this block as inner blocks:
Please help me
Here is edit function code of my block where I'm placed console.log where I'm found this problem:
And here is screenshot of empty preview rectangles and empty arrays in console
Beta Was this translation helpful? Give feedback.
All reactions