You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Default values should be serialized and sent across Block Renderer to the front end. #12951
Is your feature request related to a problem? Please describe.
Creating defaults is something that I love about the Gutenberg attribute definitions. Declaring them with a block that uses serversiderender allows those defaults to be seen in the editor, but not on the front end. Why wouldn't we want to use custom-built defaults on the front end?
Describe the solution you'd like
Let default values be serialized and sent to the front end for server-side rendered blocks.
This issue gets solved as soon as Server-side awareness of block types is implemented #2751. The implementation will allow the front end to know the default values of the attributes.
Closing this issue, as now we have a mechanism for server-side awareness of blocks and API's to retrieve metadata like default attributes on the server.
Activity
jorgefilipecosta commentedon Dec 17, 2018
This issue gets solved as soon as Server-side awareness of block types is implemented #2751. The implementation will allow the front end to know the default values of the attributes.
skorasaurus commentedon Feb 4, 2021
Is this now unblocked because of #21065 ?
jorgefilipecosta commentedon Apr 26, 2021
Closing this issue, as now we have a mechanism for server-side awareness of blocks and API's to retrieve metadata like default attributes on the server.