colored toast and other minor tweaks

This commit is contained in:
spencerwooo
2021-08-29 22:31:42 +01:00
parent a3644b50e5
commit a488d3324e
8 changed files with 50 additions and 20 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ const fetcher = (url: string) => axios.get(url).then(res => res.data)
*/
export const useStaleSWR = (dataKey: Key) => {
const revalidationOptions = {
revalidateOnMount: !cache.has(dataKey), //here we refer to the SWR cache
revalidateOnMount: !cache.has(dataKey),
revalidateOnFocus: false,
revalidateOnReconnect: false,
}