You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently we are always disabling the use of proxy for browser compatibility. However now that we are building universal and modern bundles, we could potentially change this setting based on the current build. It would be worthwhile using proxies to make the exploration of the store data easier.
configureMobx({ useProxies: 'never' });
We would need our code to have some sort of awareness on which build is running (modern vs. universal). There a couple ideas on how we could identify the bundle below, but perhaps there is another yet to be thought of?
Using webpack "defineplugin" (similar to what we do to get the current branch name) to then configure Mobx accordingly (maybe via a new setting)
Leverage the polyfill (exported out of snap-preact) and used byuniversal.js to set a global variable or other flag that can be later picked up by Snap to then configure Mobx accordingly
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Currently we are always disabling the use of proxy for browser compatibility. However now that we are building universal and modern bundles, we could potentially change this setting based on the current build. It would be worthwhile using proxies to make the exploration of the store data easier.
We would need our code to have some sort of awareness on which build is running (modern vs. universal). There a couple ideas on how we could identify the bundle below, but perhaps there is another yet to be thought of?
universal.js
to set a global variable or other flag that can be later picked up by Snap to then configure Mobx accordinglyThe text was updated successfully, but these errors were encountered: