-
Notifications
You must be signed in to change notification settings - Fork 46.8k
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
16.8.0-alpha.0 (and 16.7) IE11 Suspense doesn't stop rendering fallback after Lazy resolves #14583
Comments
the problem was with requirements for additional polyfills in newer version |
Hmm which ones? I wouldn't expect that. |
Could be the same as #14570. A reproducing example would be very helpful; that's unexpected. |
@Kazimirkas can you try running this codesandbox and see if it runs on IE11? https://codesandbox.io/s/oo3rn9z8wq if not on codesandbox, try to run it locally. thanks! |
I tested this in IE11 with a small example using Suspense as well as @threepointone's example and both appear to work correctly. @Kazimirkas are you possibly using a |
@gaearon @threepointone. IE11 didn't throw any exceptions. So, that I don't know yet, what exactly polyfill do I need. I solved my problem with polyfill.io. I can use only the core-js promise polyfill for 16.7.0-alpha.2 and it works. This is the case without bug React 16.7.0-alpha.2 This is the buggy case React 16.7 I will try to find the exact polyfill, but I don't have any ideas yet :). |
@gaearon @threepointone I found matching polyfills after reading 4a10721 and @aweary question about Weakmap
This is the working version for React 16.7 |
@Kazimirkas to clarify, I wasn’t suggesting that you use a If you only include the |
You're right, I just removed WeakSet and it also works. |
@aweary Thank you for the hint with Sets! |
Ah okay, in that case it's expected. React 16 requires both This is in the documentation: And in React 16 release notes: That it worked before without Hope it helps! |
It worked because IE11 has native Set implementation, but it isn't compliant. The issue is likely 4a10721#diff-1996f2b11f9c68c0a81652e32be88ddbR217, where we use the @gaearon maybe we should warn for this? |
@aweary And how about the Promise ? :) reactjs/react.dev#1552 |
Ahh. @aweary Can you send a PR that just replaces it with an |
@Kazimirkas If you use |
Fixes facebook#14583 Using `new Set([iterable])` does not work with IE11's non-compliant Set implementation. By avoiding this pattern we don't need to require a Set polyfill for IE11
Fixes #14583 Using `new Set([iterable])` does not work with IE11's non-compliant Set implementation. By avoiding this pattern we don't need to require a Set polyfill for IE11
Fixes facebook#14583 Using `new Set([iterable])` does not work with IE11's non-compliant Set implementation. By avoiding this pattern we don't need to require a Set polyfill for IE11
Fixes facebook#14583 Using `new Set([iterable])` does not work with IE11's non-compliant Set implementation. By avoiding this pattern we don't need to require a Set polyfill for IE11
For me, adding the polyfills for import "react-app-polyfill/ie11"; |
Do you want to request a feature or report a bug?
report a bug
What is the current behavior?
When using Suspense, I see React.Suspense fallback layout instead of loaded component in IE 11 (IE network panel shows, that bundle was loaded)
I can not reproduce this bug in 16.7.0-alpha.2! there is everything ok.
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. Your bug will get fixed much faster if we can run your code and it doesn't have dependencies other than React. Paste the link to your JSFiddle (https://jsfiddle.net/Luktwrdm/) or CodeSandbox (https://codesandbox.io/s/new) example below:
What is the expected behavior?
see the rendered component
Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?
Tested on IE11 on windows 7
It reproduces only in 16.8.0-alpha.0
I can not reproduce this bug in 16.7.0-alpha.2, there is everything ok.
In Chrome is everything ok in all versions.
The text was updated successfully, but these errors were encountered: