Skip to content
Snippets Groups Projects
Commit 337400b3 authored by Aggarwal Himanshu's avatar Aggarwal Himanshu
Browse files

Update queries to be stale for 5 minutes

parent 425166db
No related branches found
No related tags found
No related merge requests found
...@@ -13,6 +13,7 @@ export function useCryptoTimeSeriesData(name, days = 7, interval = "daily") { ...@@ -13,6 +13,7 @@ export function useCryptoTimeSeriesData(name, days = 7, interval = "daily") {
}, },
{ {
refetchOnWindowFocus: false, refetchOnWindowFocus: false,
staleTime: 5 * 60000, // 5 minutes,
} }
); );
} }
...@@ -35,6 +36,7 @@ export function useCryptoList( ...@@ -35,6 +36,7 @@ export function useCryptoList(
}, },
{ {
refetchOnWindowFocus: false, refetchOnWindowFocus: false,
staleTime: 5 * 60000, // 5 minutes,
} }
); );
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment