diff --git a/CHANGELOG.md b/CHANGELOG.md index 671ba4623..22f292c28 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,7 +10,11 @@ Changes since last non-beta release. *Please add entries here for your pull requests that are not yet released.* +#### Fixed +- Fixed issue with component script initialization when using react_component_hash. [PR 1071](https://github.com/shakacode/react_on_rails/pull/1071) by [jblasco3](https://github.com/jblasco3). + ### [11.0.2] - 2018-04-24 + #### Fixed - Server rendering error for React on Rails Pro. [PR 1069](https://github.com/shakacode/react_on_rails/pull/1069) by [justin808](https://github.com/justin808). diff --git a/lib/react_on_rails/react_on_rails_helper.rb b/lib/react_on_rails/react_on_rails_helper.rb index 7f01b6301..ca1bd585b 100644 --- a/lib/react_on_rails/react_on_rails_helper.rb +++ b/lib/react_on_rails/react_on_rails_helper.rb @@ -142,7 +142,7 @@ def react_component_hash(component_name, options = {}) if server_rendered_html.is_a?(Hash) build_react_component_result_for_server_rendered_hash( server_rendered_html: server_rendered_html, - component_specification_tag: internal_result["tag"], + component_specification_tag: internal_result[:tag], console_script: console_script, render_options: internal_result[:render_options] )