Skip to content

Commit

Permalink
swap functions so the right errors show up
Browse files Browse the repository at this point in the history
  • Loading branch information
Judahmeek committed May 15, 2024
1 parent 8e8227a commit 40cdb1f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/react_on_rails/helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -441,11 +441,10 @@ def internal_react_component(react_component_name, options = {})
"data-trace" => (render_options.trace ? true : nil),
"data-dom-id" => render_options.dom_id)

load_pack_for_generated_component(react_component_name, render_options)
# Create the HTML rendering part
result = server_rendered_react_component(render_options)

load_pack_for_generated_component(react_component_name, render_options)

{
render_options: render_options,
tag: component_specification_tag,
Expand Down

0 comments on commit 40cdb1f

Please sign in to comment.