I currently need to dynamically load events into fullCalendar using events, however, this causes my API to be called infinitely. Is this a bug or is it meant to be?
This code below loads events into my calendar, however, it calls my api infinitely.
If you think it is because I am not using arrow functions in events, changing it to an arrow function does not work either. It calls my API infinitely and leads to no events to be shown on the calendar.
Is this a bug? And to make matters worse, anytime I use arrow functions in events, no matter the output, it will never load the events into the calendar. This is true even with the example from the documentation.
I currently need to dynamically load events into fullCalendar using events, however, this causes my API to be called infinitely. Is this a bug or is it meant to be?
This code below loads events into my calendar, however, it calls my api infinitely.
If you think it is because I am not using arrow functions in events, changing it to an arrow function does not work either. It calls my API infinitely and leads to no events to be shown on the calendar.
Is this a bug? And to make matters worse, anytime I use arrow functions in events, no matter the output, it will never load the events into the calendar. This is true even with the example from the documentation.
Is this a bug as well? If I remove the arrow function and just do
events = {returnEvent()}
it works fine for this example.