Comments (5)
To help us diagnose the issue efficiently, could you provide a stripped-down reproduction test case using the latest version? A live example would be fantastic! ✨
For your convenience, our documentation offers templates and guides on creating targeted examples: Support - Bug reproduction
Just a friendly reminder: clean, functional code with minimal dependencies is most helpful. Complex code can make it tougher to pinpoint the exact issue. Sometimes, simply going through the process of creating a minimal reproduction can even clarify the problem itself!
Thanks for your understanding! 🙇🏼
from mui-x.
You can see the live example here (make sure to access it with a mobile device):
https://react-bxwynh.stackblitz.io/
When the number of calendars is high, there is a noticeable slowdown, but when I reduce the number, the speed improves.
Before purchasing the license, I checked if I could customize this component to display the months vertically and scroll through them. Based on this, I decided to buy the license. However, after completing the customization, I encountered significant slowness.
from mui-x.
@srbadni It looks like "Expedia" uses your mentioned layout/design only on the mobile version of the webpage.
Have you considered using MobileDateRangePicker
for this as it technically better resembles the bahavior? 🤔
Another option could be to rebuild the input/interaction part using your desired entry/input and any modal/dialog solution you want to render DateRangeCalendar
.
Here is an experiment I've done with MobileDateRangePicker
: https://stackblitz.com/edit/react-bxwynh-xyjqdz?file=Demo.tsx
Does it help you alleviate the performance problems as compared to the desktop variant?
from mui-x.
@LukasTy I ran your example. In fact, in your example, the MobileDateRangePicker
component is uncontrolled, which, as I tested in my Mobile device, makes the speed somewhat higher. But when I make it controlled, the processing and selection speed decreases again:
https://react-bxwynh-31wtta.stackblitz.io/
In Expedia, as soon as you click on a day, that day gets selected immediately. Overall, I didn't see much difference between your approach and the one I was originally implementing.
from mui-x.
@srbadni thank you for confirming your discoveries. 👍
I'm adding this issue to the board to discuss possible approaches within the team.
The DateRangeCalendar
was not designed to work with so many calendars, but surfacing this problem could help us improve the performance of the DateRangeCalendar
overall. 👌
from mui-x.
Related Issues (20)
- Date range picker selecting future date reset the value HOT 4
- [data grid] Incorrect table height if height is inherited HOT 5
- [data grid] I would like to display the data-grid filter panel elsewhere HOT 2
- [data grid] Indicate a loading state when searching through quick filter in datagridpro. HOT 3
- [charts] Overlap on legend in ResponsiveChartContainer HOT 2
- [pickers] expired package version HOT 3
- [data grid] How to put links on elements of a grouping column ? HOT 7
- [docs] Add Tailwind setup and examples
- [pickers] Datepicker prop view doesn't controll the visible view HOT 3
- [DataGrid] Issue while resizing with pinned columns HOT 1
- [data grid] Grid has inconsistent background HOT 3
- [pickers] disable autofocus to start when selecting end-range HOT 4
- [data grid] Support scrolling in any direction HOT 1
- [data grid] How can I add an event handler on each row to handle file drops HOT 4
- [pickers] Build error because of `@mui/utils/clamp` HOT 7
- [pickers][MobileDatePicker] Too much recursion error when using MobileDatePicker inside a IonModal component HOT 1
- [data grid] Filter panel columns customize HOT 3
- [pickers][DateRangePicker] Separately disable start and end date picking HOT 4
- [data grid] Multi Selection functionality in the Columns visibility panel HOT 1
- [data grid] `valueGetter` row is always never HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mui-x.