diff --git a/spotlight-client/src/DataStore/RootStore.ts b/spotlight-client/src/DataStore/RootStore.ts index c7ee6b5b..cee902a0 100644 --- a/spotlight-client/src/DataStore/RootStore.ts +++ b/spotlight-client/src/DataStore/RootStore.ts @@ -16,11 +16,20 @@ // ============================================================================= import { Auth0ClientOptions } from "@auth0/auth0-spa-js"; -import { computed, makeObservable } from "mobx"; +import { computed, configure, makeObservable } from "mobx"; import TenantStore from "./TenantStore"; import UiStore from "./UiStore"; import UserStore from "./UserStore"; +configure({ + // make proxies optional for IE 11 support + useProxies: "ifavailable", + // activate runtime linting + computedRequiresReaction: true, + reactionRequiresObservable: true, + observableRequiresReaction: true, +}); + /** * Returns the auth settings configured for the current environment, if any. */ diff --git a/spotlight-client/src/index.tsx b/spotlight-client/src/index.tsx index fa756bf5..fa20eaed 100644 --- a/spotlight-client/src/index.tsx +++ b/spotlight-client/src/index.tsx @@ -19,7 +19,6 @@ import "react-app-polyfill/ie11"; import "react-app-polyfill/stable"; import "intersection-observer"; -import { configure } from "mobx"; import React from "react"; import ReactDOM from "react-dom"; import ReactModal from "react-modal"; @@ -28,15 +27,6 @@ import App from "./App"; smoothScroll.polyfill(); -configure({ - // make proxies optional for IE 11 support - useProxies: "ifavailable", - // activate runtime linting - computedRequiresReaction: true, - reactionRequiresObservable: true, - observableRequiresReaction: true, -}); - ReactDOM.render(, document.getElementById("root"), () => { ReactModal.setAppElement("#root"); });