-
Hi, probably I'm doing somtehing wrong but I can't get mobx6 working with IE11. I've a React application and I'm using createReactApp and Typescript. In my index.tsx I've added import "react-app-polyfill/ie11"; but IE11 doesn't work and the console log shows [MobX] Changing {enforceActions: "never"} to "always" will toggle strict-mode when watching the console log in Firefox. So the line is reached and configure will do somehting but it doesn't disable the proxies in IE11. Any idea? Regards |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Can you please verify Do you know when it throws? Does it throw if you try to create observable object or array. Or does it throw immediately on import? |
Beta Was this translation helpful? Give feedback.
-
The problem and solution might be caused by making an unrelated code change. JavaScript module loading order is not very transparent, so it might be very well the case that another module is (indirectly) imported and run before arriving at the configure call. A simple way to check that is to put a |
Beta Was this translation helpful? Give feedback.
Can you please verify
mobx._getGlobalState().useProxies === false
?Do you know when it throws? Does it throw if you try to create observable object or array. Or does it throw immediately on import?