-
-
Notifications
You must be signed in to change notification settings - Fork 631
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Activate component loaded asynchronously #921
Comments
@thomassnielsen Try out: https://github.com/shakacode/react_on_rails/blob/master/node_package/src/ReactOnRails.js#L83 If you don't want to reload everything, see what that function calls. Feel free to ask me to re-open this. |
Hi, I may have missed something but I couldn’t find a way to use ClientStartup.render without modifying the node module, and neither could I re-render all of my components, so I came with another solution: In a component:
To trigger it from your ajax call callback:
Also, if you use Redux, make sure the |
@hchevalier if you think this is generally useful, please create a very simple demonstration of why in the sample app in the /spec/dummy of this repo. Throw some docs, a changelog entry, and a test, and I'll merge it! |
@hchevalier Please email me at [email protected] to get an invite to our Slack channel. |
We have a legacy system where we load parts of a form asynchronously. Now we want to replace parts of that form with react components. However, if I use
react_component
in a template that's loaded via an xhr request, it doesn't activate. If I useprerender: true
the component renders, but it isn't rehydrated.Is there anything I can call to activate the component from the template?
The text was updated successfully, but these errors were encountered: