Closed DevTalent1121 closed 1 year ago
I'm not sure what you are meaning. But basically we are using redux store through provider. store is the redux too. That could be the different directory but maybe same meaning. I think we can have multiple redux stores but one could be enough. I guess you can remove one of them and merge both of them into one. Store will have multiple redux states
I am not sure how to merge those two stores. So I am asking to you. Hope you understand me
Is this possible to run and test current project on your side?
@ndev1991 Test url will be "localhost:3000/products" and the source for that page is "src/pages/private/ProductPage.tsx"
from store/index.ts, import redux/reducers/index.ts like other imports.
And then you can add that state here.
const rootReducer = combineReducers({ shopify: shopifyReducer, cartUI: cartUIReducer, variants: variantsReducer, app: appReducer });
import { createStore, combineReducers } from "redux"; import { shopifyReducer } from "./shopify/reducers"; import { cartUIReducer } from "./cartUI/reducers"; import { variantsReducer } from "./variants/reducers";
import { Reducer } from "../redux/reducers";
const rootReducer = combineReducers({ shopify: shopifyReducer, cartUI: cartUIReducer, variants: variantsReducer, app: Reducer });
Like this?
yes
Okay, let me try, it seems working
okay
how's it going? everything good?
Yeah, it's showing products - So we can be sure that the redux is working properly. I will work on products displaying styles and cart configuration. Thanks
let me know when you are free. Last weekend, we've told about you with friends.
haha thanks
i'm contacting you now
Hello @ndev1991