-
Notifications
You must be signed in to change notification settings - Fork 16
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
Edge Turbolinks disables turbo-react #24
Comments
I just updated to the latest 0.8.3 release and I think this is closer. However upon inspection I believe Turbolinks is using |
I tried updating turbo-react to also overwrite "Warning: React attempted to reuse markup..." However, it seems it just removes my element #target from the dom entirely. I'm not savvy enough with React to guess a solution for this. For any Turbolinks action other than 'change' it looks like Turbolinks now calls |
Thanks for looking into edge Turbolinks, @glennfu. I am going to figure out how to build on top of it. |
@ssorallen On a related note, check this conversation: turbolinks/turbolinks-classic#628 Turbolinks 5 will be coming by the end of the year along with Rails 5, and they're debating whether or not to even bother continuing with Turbolinks 3. So with that in mind, by the time you (or I) figure out how to properly integrate with Turbolinks 3, Turbolinks 5 will be out! I get the sense that because it's a complete rewrite, the difference between 3 and 5 won't just be about updating the code, but about re-thinking for a new strategy of behavior. It's still in very early development if you check out the current code here: https://github.com/basecamp/turbolinks. The way they describe the effort, I think it'll include much better hooks for interacting with it. This might give us what we need for dropping in React to do the rendering, vs trying to hack Turbolinks 3 into having those kinds of hooks. Since the dev is so early I'm not certain about that point, though. |
This was fixed in react-magic#35 and is not an issue with the released Turbolinks v5.0.0. |
The master branch of turbolinks includes internal stylesheets which break the HTML to JSX parser, effectively disabling turbo-react. see reactjs/react-magic#35
The text was updated successfully, but these errors were encountered: