Skip to content

Handle setState in render#2565

Merged
JoviDeCroock merged 1 commit intopreactjs:masterfrom
jamesb3ll:fix-setstate-in-render
Jun 2, 2020
Merged

Handle setState in render#2565
JoviDeCroock merged 1 commit intopreactjs:masterfrom
jamesb3ll:fix-setstate-in-render

Conversation

@jamesb3ll
Copy link
Copy Markdown
Contributor

Fixes #2553

@JoviDeCroock
Copy link
Copy Markdown
Member

Hey is it possible to reproduce this in a test? If so let's add it to prevent us from regressing in this area

@marvinhagemeister
Copy link
Copy Markdown
Member

Awesome thank you so much for the PR 👍 Let's add a test case for this like @JoviDeCroock suggested and than it's ready to be merged 🎉

@JoviDeCroock
Copy link
Copy Markdown
Member

Awesome work, thank you so much!

@jamesb3ll
Copy link
Copy Markdown
Contributor Author

Sorry, I've been busy the past few days. Hope the test I added is okay 😃 Thanks for the help!

@jamesb3ll jamesb3ll force-pushed the fix-setstate-in-render branch from 19cc385 to 715efe2 Compare June 2, 2020 12:03
@jamesb3ll
Copy link
Copy Markdown
Contributor Author

Rebased master and squashed commits

@JoviDeCroock JoviDeCroock merged commit 59c9aba into preactjs:master Jun 2, 2020
@jamesb3ll jamesb3ll deleted the fix-setstate-in-render branch June 2, 2020 12:26
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.

Preact-router and setState callback does not play nice

3 participants