Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a bug in IE on Windows Phone 8.1 where a page enters a reload loop?

I can't really give minimal repro for this, so apologies if the question is deemed too localized. I don't have a WP device, but when using Browsertack with any Lumia, this page enters an infinite reload loop.

This neither happens on desktop browsers (including IE), nor on other mobile browsers. I can't see if the issue is localized to WP, or if it's a bug in emulator. This doesn't happen in desktop IE's “emulating” mode either.

What could be causing this?

like image 622
Dan Abramov Avatar asked Dec 01 '25 14:12

Dan Abramov


1 Answers

The problem was due to Windows Phone 8.1 user agent change that now includes Android 4.0. This caused a false negative in Modernizr's History API support check, which in turn caused react-router to use window.location instead of pushstate, and refresh the page on every replaceWith call.

like image 71
Dan Abramov Avatar answered Dec 04 '25 07:12

Dan Abramov



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!