_My app doesn't crash, but I'm getting unexpected behavior. So, I've described the unexpected behavior and suggested a new behavior._
Hello,
Since I've fixed a prerender issue in #555, componentDidMount is not fired anymore...
I've also added a server_rendering.js file to fix another issue, who is:
I don't understand where the problem come from, even if I set the prerender to false the componentDidMount is still not fired.
Wow, so the components _do_ mount on the page, but the function is never called?
I have _no_ idea what it could be, so I just have the normal questions:
componentDidMount on a fresh page load?@tchret If you disabled prerender, I assume your component was rendered by Ajax call or something like that (not on first page load). You should add <script>ReactRailsUJS.mountComponents()</script> where you render component and make sure //= require react_ujs exists in application.js. I just faced this issue and get over it. Hope this help!
Did you find a solution??
@rmosolgo yes, it was a dumb mistake where I was 100% involved...
Sorry for the inconvenience
no problem, glad you found it!
What was the issue? I've stumbled upon this issue myself and really can't get past it...