You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The above sandbox initially works. But if you comment out the dateIncrement: "24:00" and uncomment the dateIncrement: { days: 1 }, an error occurs.
The text was updated successfully, but these errors were encountered:
acerix
changed the title
"Maximum update depth exceeded" error when dateIncrement is of type { day: # }
"Maximum update depth exceeded" error when updating event state on dateSet with dateIncrement in days
Mar 9, 2021
acerix
changed the title
"Maximum update depth exceeded" error when updating event state on dateSet with dateIncrement in days
"Maximum update depth exceeded" error when updating event state on datesSet with dateIncrement in days
Mar 9, 2021
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:
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.The text was updated successfully, but these errors were encountered: