Skip to content

Commit 7305cc7

Browse files
committed
Remove calls to deleted disable_pro_render_options_if_not_licensed
The disable_pro_render_options_if_not_licensed method was removed from ProUtils as part of simplifying immediate_hydration. This removes the remaining calls to that method: - render_options.rb: Options now passed directly without processing - pro_helper.rb: Store data now used as-is since immediate_hydration is already set correctly by helper.rb and controller.rb immediate_hydration is now automatically set to the correct value (ProUtils.immediate_hydration_enabled?) before the data reaches these methods, so no additional processing is needed.
1 parent 66f0b0a commit 7305cc7

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

lib/react_on_rails/pro_helper.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@ def generate_component_script(render_options)
3838
# Generates the complete store hydration script tag.
3939
# Handles both immediate hydration (Pro feature) and standard cases.
4040
def generate_store_script(redux_store_data)
41-
redux_store_data = ReactOnRails::ProUtils.disable_pro_render_options_if_not_licensed(redux_store_data)
42-
4341
store_hydration_data = content_tag(:script,
4442
json_safe_and_pretty(redux_store_data[:props]).html_safe,
4543
type: "application/json",

lib/react_on_rails/react_component/render_options.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class RenderOptions
1515
# TODO: remove the required for named params
1616
def initialize(react_component_name: required("react_component_name"), options: required("options"))
1717
@react_component_name = react_component_name.camelize
18-
@options = ReactOnRails::ProUtils.disable_pro_render_options_if_not_licensed(options)
18+
@options = options
1919
end
2020

2121
attr_reader :react_component_name

0 commit comments

Comments
 (0)