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

Performance Issue with numberOfDays Prop in Day View Mode #173

Open
basaksilasanli opened this issue Jan 9, 2025 · 0 comments
Open

Performance Issue with numberOfDays Prop in Day View Mode #173

basaksilasanli opened this issue Jan 9, 2025 · 0 comments

Comments

@basaksilasanli
Copy link

First of all, thank you for creating and maintaining such a great library!
I've been using this library for my project, and I noticed a potential performance issue after upgrading to version 2.

With the introduction of the numberOfDays prop (which replaced viewMode), I’ve set numberOfDays to 1 because my project only focuses on single-day views, and I don’t use weekly or multi-day views.
However, I observed that when numberOfDays is set to 1, the initial loading time of the calendar increases significantly, especially when used with the newly introduced pagesPerSide prop (default value 2).

To better understand the issue, I ran some tests:

If I increase numberOfDays to 5, the initial loading time is noticeably reduced.
At the start, there are no events or unavailable hours provided in my setup.
I was able to reduce the lag by setting pagesPerSide to 0, but I still don’t understand why there’s such a noticeable delay when using the day view (numberOfDays = 1).

I would appreciate it if you could look into this issue, as it might affect others who use the day view mode. Please let me know if you need more details or example code to reproduce the issue.

Thank you for your time and support!

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

No branches or pull requests

1 participant