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

Hotfix: change n days #126

Merged
merged 2 commits into from
Aug 22, 2021
Merged

Hotfix: change n days #126

merged 2 commits into from
Aug 22, 2021

Conversation

pdpino
Copy link
Collaborator

@pdpino pdpino commented Aug 19, 2021

Fixes #118

  • I applied a simple fix for this bug: whenever the numberOfDays prop changes --> recreates the initialDates array to avoid the inconsistencies
  • componentDidUpdate() will trigger an additional render --> not so efficient

I'm very busy at the moment, so I think we could apply this hotfix for now and come up with a better solution later. What do you think?

@hoangnm
Copy link
Owner

hoangnm commented Aug 22, 2021

I agree, we can apply the hotfix first.

@hoangnm hoangnm merged commit 1577dcb into hoangnm:master Aug 22, 2021
@pdpino pdpino deleted the hotfix/change-n-days branch September 8, 2021 15:30
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.

Moving between dates changing the numberOfDays make miss some pages.
2 participants