We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 353f725 commit 41f7c3cCopy full SHA for 41f7c3c
lib/react_on_rails/controller.rb
@@ -12,9 +12,11 @@ module Controller
12
#
13
# Be sure to include view helper `redux_store_hydration_data` at the end of your layout or view
14
# or else there will be no client side hydration of your stores.
15
- def redux_store(store_name, props: {})
+ def redux_store(store_name, props: {}, force_load: nil)
16
+ force_load = ReactOnRails.configuration.force_load if force_load.nil?
17
redux_store_data = { store_name: store_name,
- props: props }
18
+ props: props,
19
+ force_load: force_load }
20
@registered_stores_defer_render ||= []
21
@registered_stores_defer_render << redux_store_data
22
end
0 commit comments