Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default values should be serialized and sent across Block Renderer to the front end. #12951

Closed
mrpritchett opened this issue Dec 17, 2018 · 3 comments
Labels
[Package] Server Side Render /packages/server-side-render [Status] Blocked Used to indicate that a current effort isn't able to move forward [Type] Enhancement A suggestion for improvement.

Comments

@mrpritchett
Copy link

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.

@designsimply designsimply added [Type] Question Questions about the design or development of the editor. [Package] Server Side Render /packages/server-side-render labels Dec 17, 2018
@jorgefilipecosta jorgefilipecosta added the [Status] Blocked Used to indicate that a current effort isn't able to move forward label Dec 17, 2018
@jorgefilipecosta
Copy link
Member

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.

@earnjam earnjam added [Type] Enhancement A suggestion for improvement. and removed [Type] Question Questions about the design or development of the editor. labels Feb 19, 2019
@skorasaurus
Copy link
Member

Is this now unblocked because of #21065 ?

@jorgefilipecosta
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Package] Server Side Render /packages/server-side-render [Status] Blocked Used to indicate that a current effort isn't able to move forward [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

No branches or pull requests

5 participants