diff --git a/docs/faq/CodeStructure.md b/docs/faq/CodeStructure.md index d690e9f09e..dc045b780c 100644 --- a/docs/faq/CodeStructure.md +++ b/docs/faq/CodeStructure.md @@ -202,9 +202,9 @@ axiosInstance.interceptors.request.use(config => { Then, in your entry point file, inject the store into the API setup file: ```js title="index.js" -import store from "./app/store". -import {injectStore} from "./common/api"; -injectStore(store); +import store from "./app/store" +import {injectStore} from "./common/api" +injectStore(store) ``` This way, the application setup is the only code that has to import the store, and the file dependency graph avoids circular dependencies.