You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My app crashes with react-rails, so I've included the stack trace and the exact steps which make it crash.
My app doesn't crash, but I'm getting unexpected behavior. So, I've described the unexpected behavior and suggested a new behavior.
I'm trying to use react-rails with another library, but I'm having trouble. I've described my JavaScript management setup (eg, Sprockets, Webpack...), how I'm trying to use this other library, and why it's not working.
I have another issue to discuss.
I'm working through the process of adding Turbolinks 5 to an app. I am expecting react components to be present while the cache is being shown prior to a fresh copy being retrieved during an application visit. Since react components are unmounted prior to the cache "snapshot" being taken, they are not present in the view.
Changing this event to turbolinks:before-render seems to fix the issue. turbolinks:before-render seems to be the next event fired after turbolinks:before-cache.
React components are now present when the cache shows. This event has no direct translation to turbolinks classic.
If this sounds good I can get a PR going.
Broke
Fixed
The text was updated successfully, but these errors were encountered:
Help us help you! Please choose one:
react-rails
, so I've included the stack trace and the exact steps which make it crash.react-rails
with another library, but I'm having trouble. I've described my JavaScript management setup (eg, Sprockets, Webpack...), how I'm trying to use this other library, and why it's not working.I'm working through the process of adding Turbolinks 5 to an app. I am expecting react components to be present while the cache is being shown prior to a fresh copy being retrieved during an application visit. Since react components are unmounted prior to the cache "snapshot" being taken, they are not present in the view.
Changing this event to
turbolinks:before-render
seems to fix the issue.turbolinks:before-render
seems to be the next event fired afterturbolinks:before-cache
.React components are now present when the cache shows. This event has no direct translation to turbolinks classic.
If this sounds good I can get a PR going.
Broke
Fixed
The text was updated successfully, but these errors were encountered: