-
-
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
Change Turbolinks unmount event from before-visit to before-render #709
Conversation
1 similar comment
@volkanunsal @szyablitsky Do we have consensus on merging this one? |
Reviewed 2 of 2 files at r1, 1 of 1 files at r2. Comments from Reviewable |
Looks good to me. 👍 |
Imagine I have to explain this to a beginner or in an insturctional video. What do I say? That needs to go in the docs. |
2 similar comments
A few comments... My main concern is that this may not need to be configurable. I'm not convinced on why the default should be one way or another and why you'd change it. We should provide a thorough explanation here: Reviewed 4 of 6 files at r3, 2 of 2 files at r4. CHANGELOG.md, line 9 at r4 (raw file):
Please reference the github "issue" as well. docs/additional-reading/turbolinks.md, line 102 at r4 (raw file):
@volkanunsal @szyablitsky What is the disadvantage to always using before-render? Why did we change this to before-visit? docs/additional-reading/turbolinks.md, line 102 at r4 (raw file):
docs/api/javascript-api.md, line 37 at r4 (raw file):
true binds unmounting to the node_package/src/ReactOnRails.js, line 62 at r4 (raw file):
true binds unmounting to the Comments from Reviewable |
2 similar comments
Removed option and set unmount event back to |
@volkanunsal Are you good with this change? I'd prefer not to have an extra option if it's not necessary. |
The reason I settled on before-visit initially is because it solved the
error message introduced by before-render at the time I tested it for #610.
We still don't fully understand why the double render error was being
thrown by React.
|
I'm ok with removing the configuration option. |
Reviewed 5 of 6 files at r5. Comments from Reviewable |
Fixed in 6.5.1. |
) * change turbolinks unmount event from before-visit to before-render * Addresses #706
…e-redux-div-to-json-script * origin/master: (42 commits) Release 6.5.1 Update CHANGELOG.md Ability to work without sprockets (#671) Change Turbolinks unmount event from before-visit to before-render (#709) Update generator.md Update README.md Update i18n.md Small formatting tweak Release 6.5.0 Updated CHANGELOG.md Update README.md Update README.md Update README.md Fix incorrect "this" references of Node.js SSR Remove reference to heroku-buildpack-multi (#698) Small fixes to achieve reproducible build (#661) Update PROJECTS.md Doc Changes for links on gitbook Update README.md Added property renderedHtml to return gen func ...
fixes #706
This change is