We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9974e71 commit 048df4fCopy full SHA for 048df4f
apps/frontend/src/components/launches/calendar.context.tsx
@@ -109,8 +109,8 @@ export const CalendarWeekProvider: FC<{
109
}, [filters]);
110
111
const loadData = useCallback(
112
- async (url: string) => {
113
- const data = (await fetch(`/posts${url}?${params}`)).json();
+ async () => {
+ const data = (await fetch(`/posts?${params}`)).json();
114
return data;
115
},
116
[filters, params]
@@ -141,9 +141,6 @@ export const CalendarWeekProvider: FC<{
141
: `month=${filters.currentMonth}`
142
}&year=${filters.currentYear}`
143
);
144
- setTimeout(() => {
145
- swr.mutate();
146
- }, 10);
147
148
[filters, swr.mutate]
149
0 commit comments