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 Issues with CDatePicker Component when using timepicker Prop #401

Closed
hamzatahir-notell opened this issue Jun 21, 2024 · 2 comments

Comments

@hamzatahir-notell
Copy link

In our React application, we have integrated multiple instances of the CDatePicker component from the CoreUI library. When we enable the timepicker prop to allow users to select both date and time, and have 20 or more instances of the component on a single page, we observe significant performance degradation. This issue manifests as:

Delayed Click Handlers: Interactions such as button clicks and other event handlers experience noticeable delays.
UI Lag: The responsiveness of the entire user interface is compromised, making it sluggish and unresponsive at times.
Steps to Reproduce:

Integrate 20 or more instances of the CDatePicker component in a CoreUI React project.
Enable the timepicker prop for each instance.
Observe the overall performance of the application, particularly focusing on click handlers and general UI responsiveness.
Expected Behavior:
The CDatePicker component with the timepicker prop enabled should function smoothly without causing any performance issues. Click handlers and other interactions should remain responsive, even with multiple instances on a single page.

Actual Behavior:
Enabling the timepicker prop with 20 or more instances of the CDatePicker component results in delayed click handlers and a sluggish user interface.

Environment:

@coreui/react-pro : "^4.1.4",
@coreui/coreui-pro : "^4.1.2",
react : "^17.0.2",
Browser: Chrome , Firefox (latest)
Operating System: Windows10
Additional Information:
We have tried several troubleshooting steps, including:

Profiling the application to identify performance bottlenecks.
Testing on different browsers and devices.
Ensuring there are no additional heavy processes running concurrently.
Despite these efforts, the issue persists. Any guidance or fixes would be highly appreciated.
SS

@mrholek
Copy link
Member

mrholek commented Jun 21, 2024

Hi, can you update @coreui/react-pro to the latest version and check if this issue still exists. Version 4.1.4 is outdated. Please update also react to the latest version

Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants