Skip to content

Commit 0cb2d72

Browse files
committed
Cache all queries for 5 minutes by default, default was never.
1 parent 75928f5 commit 0cb2d72

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/Exceptionless.Web/ClientApp/src/routes/+layout.svelte

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,13 @@
3838
}
3939
});
4040
41-
const queryClient = new QueryClient();
41+
const queryClient = new QueryClient({
42+
defaultOptions: {
43+
queries: {
44+
staleTime: 5 * 60 * 1000
45+
}
46+
}
47+
});
4248
</script>
4349

4450
<div class="bg-background text-foreground">

0 commit comments

Comments
 (0)