-
Notifications
You must be signed in to change notification settings - Fork 34
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
Quick update of atom with a previous value is ignored #24
Comments
It looks like the issue is here:
According to the documentation (https://reactjs.org/docs/react-component.html#setstate):
So, every new |
A possible solution is moving However, I'm not sure about the performance here. |
That seems to be a good catch! Let me take some time to debug this. Not sure about moving Another obvious solution could be to use the |
@blacktaxi |
Added a repro and tracking this in #27 now |
When you quickly update an atom with a previous value right after updating with a new one - the last change is ignored
The code sample can be found here
The text was updated successfully, but these errors were encountered: