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

(fix) - nested setState calls with accurate this.state #1748

Merged
merged 5 commits into from
Sep 9, 2019

Conversation

JoviDeCroock
Copy link
Member

Adds 7bytes to the main package
Fixes: #1741

@coveralls
Copy link

coveralls commented Jul 1, 2019

Coverage Status

Coverage increased (+0.1%) to 99.882% when pulling b5832ae on fix/nestedSetStateCb into 74074a3 on master.

Copy link

@edimitchel edimitchel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGFM !

src/diff/index.js Show resolved Hide resolved
test/browser/components.test.js Show resolved Hide resolved
@edimitchel
Copy link

edimitchel commented Jul 29, 2019

Is there any hope of getting this correction before the release of the stable version of Preact X?
In any case, thanks a lot for your hard work !
@developit ?

@marvinhagemeister
Copy link
Member

@edimitchel I've actually come across a project which had a minor but valid use case for nesting setState. So we're merging this one here 🎉

Copy link
Member

@marvinhagemeister marvinhagemeister left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, after seeing a use case I'm fine with merging this 👍

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

Successfully merging this pull request may close these issues.

Callback on nested setState doesn't called with update state
6 participants