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

How to use redux state in react state? #1778

Closed
1 task
sajjadshiasi opened this issue Jul 27, 2021 · 1 comment
Closed
1 task

How to use redux state in react state? #1778

sajjadshiasi opened this issue Jul 27, 2021 · 1 comment

Comments

@sajjadshiasi
Copy link

What version of React, ReactDOM/React Native, Redux, and React Redux are you using?

  • React: 16.14.0
  • ReactDOM/React Native:
  • Redux: 4.1.0
  • React Redux: 7.2.4

I try to pass redux props/state in my react state.

What is the current behavior?

https://codesandbox.io/s/hopeful-burnell-p4qvr?file=/src/store.js

What is the expected behavior?

In react dev tools all things good but when try to access email of user data give error that : annot read property ‘email’ of undefined.
I log from componentWillReceiveProps and it's work but give to log first is undefined and then data of user.
Untitled

Which browser and OS are affected by this issue?

No response

Did this work in previous versions of React Redux?

  • Yes
@markerikson
Copy link
Contributor

The issue tracker here on GitHub is reserved for bug reports and feature requests. For usage questions (which is what I believe this is), please use Stack Overflow or Reactiflux where there are a lot more people ready to help you out. Thanks!

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

2 participants