-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Stop using globalThis #2053
Comments
The documentation is here: https://opendocs.alipay.com/mini/framework/implementation-detail |
We are at an impasse here, if we want to access a global value: there are runtimes that only have It is sad to see that there are still runtimes out there that do not adhere to the standard - or in this case, if my chinese translator is correct, outright disable this feature on purpose. If I read that correctly, they deliberately disable any kind of global access, which would explain why the polyfill is not working for you - but that also means that we could not fall back to |
I guess we can in that case fall back to module scope, essentially going back to pre-8.1 behavior. See b37e57e . Could you please try if this build solves your problem and still works without anything breaking?
|
This should be solved in v8.1.2. |
What version of React, ReactDOM/React Native, Redux, and React Redux are you using?
What is the current behavior?
foca-js/foca#40
NervJS/taro#14082
According the documentation, keyword
globalThis
is disabled on alipay mini-program and polyfill is helpless, could you please replace it?What is the expected behavior?
Replace
globalThis
Which browser and OS are affected by this issue?
Chinese alipay mini-program
Did this work in previous versions of React Redux?
The text was updated successfully, but these errors were encountered: