Variablen nur in redux store und DevTools redux-toolkit
This commit is contained in:
@@ -12,9 +12,8 @@ import store from "../store/store";
|
||||
function MyApp({ Component, pageProps }) {
|
||||
useEffect(() => {
|
||||
const loadAndStoreVariables = async () => {
|
||||
await loadWindowVariables();
|
||||
const variables = {}; // Hier Variablen laden und in variables speichern
|
||||
store.dispatch(setVariables(variables));
|
||||
const variables = await loadWindowVariables();
|
||||
store.dispatch(setVariables(variables)); // Speichere die geladenen Variablen im Redux Store
|
||||
};
|
||||
|
||||
if (typeof window !== "undefined") {
|
||||
|
||||
Reference in New Issue
Block a user