Why a block needs to be registered in both the server and the client? #55884
Replies: 4 comments
-
These are some comments from internal conversations: By @ndiego
By @gziolo
Any more thoughts? PS: Once we have gathered updated info about this topic we could write a DevNote or a Developer Blog post |
Beta Was this translation helpful? Give feedback.
-
There is a related discussion I started about Static vs Dynamic blocks: Another important consideration is that when the block is dynamic and has server-side rendering, then it is required to have it registered on the server with |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
comment by @oandregal at #56334
|
Beta Was this translation helpful? Give feedback.
-
Why a block needs to be registered in both the server (PHP function
register_block_type
) and the client (JS functionregisterBlockType
)At Block API Reference / Registration it says
Is it a recommendation or a requirement?
Beta Was this translation helpful? Give feedback.
All reactions