Hello,
I have 2 questions.
- I am looking for an event that fires after the EventStore is completely ready so I can use the "getEvents" method. In React, I have been using a useEffect hook that checks if calendar.current.instance is available, but sometimes it gets the events and sometimes it doesn't. Is there an event trigger or a certain place in the configuration where I would want to set up the getEvents method to run automatically that will only run after the events are available in the EventStore?
The getEvents method accepts a filter function as a parameter in addition to the startDate and endDate, but there is no example of how to write that filter function so that it targets the events. Could I get a specific example of how to write that filter function so that it targets the events being passed in? I have tried passing in a function like this filter: (e) => e.status === 0, but that doesn't work.
Regards,
Dan