|
@@ -219,21 +219,9 @@ const store = createStore(
|
|
|
if (localStorage.authToken) {
|
|
|
store.dispatch(actionAuthLogin(localStorage.authToken));
|
|
|
}
|
|
|
-//const store = createStore(combineReducers({promise: promiseReducer, auth: authReducer, cart: cartReducer}))
|
|
|
+
|
|
|
store.subscribe(() => console.log(store.getState()));
|
|
|
|
|
|
-// const backendURL = "http://shop-roles.node.ed.asmer.org.ua/graphql";
|
|
|
-// const backendURLNotGraphQL = "http://shop-roles.node.ed.asmer.org.ua";
|
|
|
-
|
|
|
-// const gql = (url, query, variables) =>
|
|
|
-// fetch(url, {
|
|
|
-// method: "POST",
|
|
|
-// headers: {
|
|
|
-// "Content-Type": "application/json",
|
|
|
-// Accept: "application/json",
|
|
|
-// },
|
|
|
-// body: JSON.stringify({ query, variables }),
|
|
|
-// }).then((res) => res.json());
|
|
|
|
|
|
const actionRootCats = () =>
|
|
|
actionPromise(
|