Open twistmala opened 5 months ago
Inside the code I noticed that QResizeObserver is set for each calendar type. This causes the components to be rerendered a lot of times. Is this component really necessary?
This is really important. Rendering twice becomes a real problem when you have to calculate lots of content cards and calculate their positions and sizes.
Bug related to https://github.com/quasarframework/quasar-ui-qcalendar/issues/18.
I think this is still a big problem. Maybe it's just not explained properly.
Describe the bug I use basic code to display the month calendar and I noticed that the template for slot #week is rendered several times. I have tried several codes to display the basic calendar and all of them have the same issue.
I also set
console.log()
in other functions to look for a point that might be querying the render calendar template. No other function is executed multiple times!At the beginning when the component is displayed on the screen,
console.log(...)
is printed2x
. If the calendar is moved forward or backward (goToNext/PreviousMonth),console.log(...)
is printed3x
. If we perform window resize,console.log(...)
is printed50x
,100x
, ...If we have a lot of data that we want to put on the calendar, this will put a lot of load on the application!
I have not tested other views yet (day, week, agenda...).
Codes:
The same issue is with Scheduler. Code:
Expected behavior I would expect the template to be executed only once. With window resize I expect that there is no rendering of the template.
Desktop (please complete the following information):