Why select(blockEditorStore).getBlocks(clientId) return empty array for block rendered in Editor > Templates > All Templates window #63214
Unanswered
realthemes
asked this question in
Q&A
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
![Screenshot 2024-07-08 182637](https://private-user-images.githubusercontent.com/81107729/346624733-43c11340-3968-4f01-9dda-4128dfcb523b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjEwNDcxNTUsIm5iZiI6MTcyMTA0Njg1NSwicGF0aCI6Ii84MTEwNzcyOS8zNDY2MjQ3MzMtNDNjMTEzNDAtMzk2OC00ZjAxLTlkZGEtNDEyOGRmY2I1MjNiLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzE1VDEyMzQxNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTY0YTliYWJhZGUyMjljZTdlNmQzODc2NmZjMmViNmVmYzI0NWYwYTVjMTRmY2JlMWZjZTI5ZGE4MjZkNjBhMzEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.d1iJv0HGzkgcRWYw9iuPr-pWCvJdKjLHM8PxhOfcLxM)
Beta Was this translation helpful? Give feedback.
All reactions