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

fixed shown wrong selected date when using updateWeekView immediately after call setSelectedDate. #299

Merged
merged 1 commit into from
May 28, 2021

Conversation

karuru6225
Copy link
Contributor

Fixed a bug where calling updateWeekView immediately after calling setSelectedDate would display an unintended date.
It was because setState was running asynchronously.

It is reenact with the following code.
https://snack.expo.io/E4K9r9rrQ

fixed shown wrong selected date when using updateWeekView immediately after call setSelectedDate.
@peacechen
Copy link
Collaborator

Thanks @karuru6225 for this fix

@peacechen peacechen merged commit 35b3e4c into BugiDev:master May 28, 2021
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.

2 participants