DevTalent1121 / sapien-eleven-master

0 stars 0 forks source link

Redux issue #6

Closed DevTalent1121 closed 1 year ago

DevTalent1121 commented 1 year ago

Hello @ndev1991

ndev1991 commented 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

DevTalent1121 commented 1 year ago

I am not sure how to merge those two stores. So I am asking to you. Hope you understand me

DevTalent1121 commented 1 year ago

Is this possible to run and test current project on your side?

DevTalent1121 commented 1 year ago

@ndev1991 Test url will be "localhost:3000/products" and the source for that page is "src/pages/private/ProductPage.tsx"

ndev1991 commented 1 year ago

from store/index.ts, import redux/reducers/index.ts like other imports.

ndev1991 commented 1 year ago

And then you can add that state here.

const rootReducer = combineReducers({ shopify: shopifyReducer, cartUI: cartUIReducer, variants: variantsReducer, app: appReducer });

DevTalent1121 commented 1 year ago

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?

ndev1991 commented 1 year ago

yes

DevTalent1121 commented 1 year ago

Okay, let me try, it seems working

ndev1991 commented 1 year ago

okay

ndev1991 commented 1 year ago

how's it going? everything good?

DevTalent1121 commented 1 year ago

Yeah, it's showing products - image So we can be sure that the redux is working properly. I will work on products displaying styles and cart configuration. Thanks

DevTalent1121 commented 1 year ago

let me know when you are free. Last weekend, we've told about you with friends.

ndev1991 commented 1 year ago

haha thanks

ndev1991 commented 1 year ago

i'm contacting you now