Closed saramcicchi closed 2 years ago
I believe the issue is with updating the event state from datesSet which causes a loop, and likely the same cause as in this issue:
https://github.com/fullcalendar/fullcalendar/issues/7069
eg. there is no error by commenting out "datesSet":
https://codesandbox.io/s/full-calendar-date-increment-bug-forked-1p5e1?file=/src/DemoApp.jsx
It does seem like a bug and I'm not sure why dateIncrement
is related, but if you want to supply dynamic events based on dates of the view, you can supply the events "as a function" which is designed for that:
same as me on 5.8.0
same as me on 5.10.0
This is been fixed in v5.11.2
Updated demo: https://codesandbox.io/s/full-calendar-date-increment-bug-forked-fhxz4q?file=/src/DemoApp.jsx
In a custom view, when the
dateIncrement
is set to{ day: # }
as opposed to a string"hh:mm"
, a "Maximum update depth exceeded" error occurs.https://codesandbox.io/s/full-calendar-date-increment-bug-yo87v?file=/src/DemoApp.jsx
The above sandbox initially works. But if you comment out the
dateIncrement: "24:00"
and uncomment thedateIncrement: { days: 1 }
, an error occurs.