Replace the mounted hook filter function (which doesn't work because of how FullCalendar does rendering) with the EventSourceSuccess callback, which allows us to transform the raw data produced by an Event Source before display. Here we sort the returned data, then filter to the first N events.
Replace the mounted hook filter function (which doesn't work because of how FullCalendar does rendering) with the
EventSourceSuccess
callback, which allows us to transform the raw data produced by an Event Source before display. Here we sort the returned data, then filter to the first N events.