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
Legacy Browser Support #66
Comments
I've been using the excellent HTML5 History API Polyfill for a few projects. The only change I've had to do in other routing libraries is reference the location object before using it: var location = window.history.location || window.location; |
Using hash locations should be fine. If not, there is a bug. Can you verify if these demos are broken? http://rpflorence.github.io/react-nested-router/examples/query-params |
That example throws an error that the method I have been using hash locations anyways. The problem comes that I have to explicitly hit refresh to get the page to load after calling |
For the record, we absolutely want to support what react supports, we just haven't done all of the work yet! |
@bitsoglass I'm confused. Why does IE8 need the refresh? |
It doesn't support pushState. See #50 tl;dr - instead of falling back to hashes when using |
I'm already using hashes and am currently looking into why a refresh might have been needed. From what I have found so far |
Two things are going on here:
@bitsoglass I would only try to solve (2) here, we are discussing a solution to (1) in #50. |
Which users interested in supporting IE 8 should already be including for the purposes of using React in the first place. Also, I have figured out how to test for I will submit a pull request with the check and fix for |
awesome, thanks :) |
Maybe I'm confused as to the status of this ... but I seem to running into exactly the issue raised above, with v0.11.4: The routing works on IE8 only if I manually refresh. Just clicking a link changes the hash in the URL but doesn't have an effect on the rendered page. I have es5-shim running and in the IE8 dev tools I'm not seeing any console errors when I click a link --- it's just that nothing happens. Am I missing something about what's needed to implement this with IE8? |
Update --- don't know what changed (I'm in early stages of an app so doing a bunch of rewriting), but now it is working! That's good. Must have been something funny going on in my code (might have been that I had a history API polyfill in place because I was also trying out page.js, which required the polyfill (and still didn't work)). |
Are there any plans to support IE 8 with this router? React officially supports IE 8 but as it stands this router doesn't seem to. I am working on it a bit myself, but wanted to see if there are any official plans.
The text was updated successfully, but these errors were encountered: