@@ -172,16 +172,9 @@ def stream_react_component(component_name, options = {})
172172 # config.enable_rsc_support = true
173173 # end
174174 #
175- # @note The NDJSON stream format enables:
176- # - Progressive streaming of RSC payloads as components finish rendering
177- # - Real-time console log replay for debugging
178- # - Error handling and reporting during rendering
179- # - Selective hydration of client components
180- # - Efficient code splitting and bundle loading
181- #
182175 # @raise [ReactOnRailsPro::Error] if RSC support is not enabled in configuration
183176 #
184- # Note: You don't have to deal directly with this helper function - it's used internally by the
177+ # @note You don't have to deal directly with this helper function - it's used internally by the
185178 # `rsc_payload_route` helper function. The returned data from this function is used internally by
186179 # components registered using the `registerServerComponent` function. Don't use it unless you need
187180 # more control over the RSC payload generation. To know more about RSC payload, see the following link:
@@ -256,7 +249,8 @@ def react_component_hash(component_name, options = {})
256249 # defer: false -- pass as true if you wish to render this below your component.
257250 # force_load: false -- pass as true if you wish to hydrate this store immediately instead of
258251 # waiting for the page to load.
259- def redux_store ( store_name , props : { } , defer : false , force_load : false )
252+ def redux_store ( store_name , props : { } , defer : false , force_load : nil )
253+ force_load = ReactOnRails . configuration . force_load if force_load . nil?
260254 redux_store_data = { store_name : store_name ,
261255 props : props ,
262256 force_load : force_load }
0 commit comments