We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7b1959d commit 364d26fCopy full SHA for 364d26f
src/evently.client/src/routes/gatherings/index.tsx
@@ -12,10 +12,15 @@ export const Route = createFileRoute("/gatherings/")({
12
component: GatheringsPage,
13
loader: async () => {
14
let categories: Category[] = [];
15
- try {
16
- categories = await getCategories();
17
- } catch (error) {
18
- console.error(error);
+ let attempts = 2;
+ while (attempts > 0) {
+ try {
+ categories = await getCategories();
19
+ break;
20
+ } catch (error) {
21
+ attempts -= 1;
22
+ console.error(error);
23
+ }
24
}
25
return { categories };
26
},
0 commit comments