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

state field returns only the value of the first useState call #85

Open
ShaharMintz-checksum opened this issue Oct 19, 2022 · 0 comments
Labels
help wanted Extra attention is needed

Comments

@ShaharMintz-checksum
Copy link

When getting the state using getElementState(element.memoizedState) here in the source code, it seems like only the first useState value is considered instead of gathering all values of useState calls together into an array using the next field on the memoizedState object which when not null, holds the value of the next useState call

@baruchvlz baruchvlz added the help wanted Extra attention is needed label Oct 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants