Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sir at 1:30:17 i am getting error saying that product.map is not a function please help #7

Open
saqlain024 opened this issue Oct 11, 2023 · 2 comments

Comments

@saqlain024
Copy link

image

@AyushOJOD
Copy link

Try doing products && products.map
i.e, only render when you have products or you can also make a Loader by using the loading state from the productSlice.js

So that you can display a loader till the product is loading

@pankajkandpal99
Copy link

use optional chaining over there --> products?.map(() => {})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants