app/views/pageflow/react/_widget.html.erb in pageflow-14.0.0.beta1 vs app/views/pageflow/react/_widget.html.erb in pageflow-14.0.0.beta2
- old
+ new
@@ -1,8 +1,5 @@
<%= content_tag(:div, '', data: {widget: name}) do -%>
<% if server_rendering -%>
- <% concat React::ServerRendering.render(
- 'pageflow.react.ServerSideWidget',
- %Q'{ "resolverSeed": #{@_pageflow_react_entry_seed ||= entry_json_seed(entry)}, "widgetTypeName": "#{name}" }',
- true) %>
+ <% concat render_widget_react_component(entry, name, 'pageflow.react.ServerSideWidget') %>
<% end %>
<% end %>