"attributes" prop should be optional in ServerSideRender #7214
Labels
Framework
Issues related to broader framework topics, especially as it relates to javascript
[Type] Bug
An existing feature does not function as intended
Milestone
Describe the bug
If you try to invoke ServerSideRender without an
attributes
prop, you get an error.To Reproduce
Steps to reproduce the behavior:
ServerSideRender
component, like so:<ServerSideRender block="my/block" />
Expected behavior
If
attributes
isn't provided, it should be ignored insideServerSideRender
.Workaround
It is possible to work around this by passing an empty value into attributes, such as
<ServerSideRender block="my/block" attributes={{}} />
(and then obviously just ignore it in yourrender_callback
).The text was updated successfully, but these errors were encountered: