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

Solution for setState not working #64

Open
matiasfdevecchi opened this issue Dec 28, 2019 · 1 comment
Open

Solution for setState not working #64

matiasfdevecchi opened this issue Dec 28, 2019 · 1 comment
Labels
bug Something isn't working waiting for response

Comments

@matiasfdevecchi
Copy link

Hi, I wanted to use this package one week ago but I couldn't because setState doesn't work and reading the package's issues, you wrote that you couldn't find the problem.

I was doing my own package and faced the same problem. I fixed it by moving the initState logic to build method. The problem is when you use setState in parent, child isn't created again and initState isn't called. If you move that crucial logic to build (or maybe another better place), it will work.

@mzdm mzdm added the bug Something isn't working label Apr 4, 2021
@mzdm
Copy link
Collaborator

mzdm commented Apr 7, 2021

Can you please provide minimal reproducible code sample, if possible?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working waiting for response
Projects
None yet
Development

No branches or pull requests

2 participants