-
Notifications
You must be signed in to change notification settings - Fork 751
Closed
Description
Help us help you! Please choose one:
- [ *] My app doesn't crash, but I'm getting unexpected behavior. So, I've described the unexpected behavior and suggested a new behavior.
Hi guys we are running react-rails in production for a while. We have some global JS context, and we do implement a custom renderer.
However there are strange things inside ServerRendering::SprocketsRenderer
look over here:
def render(component_name, props, prerender_options)
...
super(component_name, props, {render_function: react_render_method})
end
Imagine I would implement some custom prerender (and I really do so) options - and looking and the renderer itself - i would expect the same prerender_options entered render method - to be passed to before and after hooks.
The code above shows that it is not true, we are cutting those options and passing something {render_function: react_render_method}. I think it should be changed. And if it sounds reasonable - I can submit a PR
Metadata
Metadata
Assignees
Labels
No labels