The error happens randomly when switching viewMode through a button set I defined (I defined a state with the viewMode)
The error is located at seedDates function.
For some reason, at some scenario, viewMode variable is set to null, and this function enters an infinite loop that crashes when the array of dates takes the maximum number of elements allowed by javascript.
The error happens randomly when switching viewMode through a button set I defined (I defined a state with the viewMode)
The error is located at seedDates function.
For some reason, at some scenario, viewMode variable is set to null, and this function enters an infinite loop that crashes when the array of dates takes the maximum number of elements allowed by javascript.