- useCalendar<TResponse>(calendarId: string, options: {
end: Date;
start: Date;
} & Partial<PublicConfiguration<TResponse, unknown, BareFetcher<TResponse>>>): SWRResponse<TResponse, any, undefined | Partial<PublicConfiguration<TResponse, any, BareFetcher<TResponse>>>>
-
Parameters
-
calendarId: string
-
options: {
end: Date;
start: Date;
} & Partial<PublicConfiguration<TResponse, unknown, BareFetcher<TResponse>>>
Returns SWRResponse<TResponse, any, undefined | Partial<PublicConfiguration<TResponse, any, BareFetcher<TResponse>>>>
Load calendar events by calendar ID, limited by given start and end dates.