I'm converting a V4 fullcalendar to V5 and the code I used to refetch the events after the modal closes no longer works. The code was
$('#fullCalModal').on('hidden.bs.modal', function () {
$('#calendar').fullCalendar( 'refetchEvents' );
});
The documentation just say this
calendar.refetchEvents()
But it has no reference to calendar, it just says "calendar.refetchEvents is not a function"
I've been googling and trying things all afternoon with no luck, so any help much appreciated.