Maximum update depth exceed with dynamic events and validRange
See original GitHub issueBug Reports
If I use datesSet
, events
and validRange
in tandem, I’m getting React’s “Maximum update depth exceeded error”. It works fine without the validRange
option. Here’s a minimal example:
What am I doing wrong? Thanks for any hints!
Issue Analytics
- State:
- Created 3 years ago
- Reactions:4
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Maximum update depth exceed with dynamic events ... - GitHub
Bug Reports If I use datesSet, events and validRange in tandem, I'm getting React's "Maximum update depth exceeded error".
Read more >React: 'Maximum update depth exceeded' with FullCalendar
As it has been said, you are triggering a useEffect with a calendarEvents dependency, which sets the state of the calendar events ( ......
Read more >@fullcalendar/list | Yarn - Package Manager
A full-sized drag & drop JavaScript event calendar ... fixed: React Strict Mode, dateSet, and "Maximum update depth exceeded error" (#5935, react-185) ...
Read more >Fix the "Maximum Update Depth Exceeded" Error in React
One of which is when you accidentally cause an infinite render loop, often resulting in the cryptic “maximum update depth exceeded” error.
Read more >Database Engine events and errors - SQL Server
ls' contains more than the maximum number of prefixes. ... Modify the SET clause to make sure that a column is updated only...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I tried that as well. Updated example:
https://codesandbox.io/s/react-fullcalendar-maximum-update-depth-exceeded-rtto4?file=/src/Calendar.js
In my real-world application I need to asynchronously fetch events in the
events
function and returning a Promise from it (or using the success/error callback) generates another loop where theevents
function is called indefinitely. This time without the React error, but if you look at the console output, you’ll see that it logs continously.Make sure that your valid range object is the same at each render I took it outside of component, it stopped rerender each time