password modal and logout token clear

This commit is contained in:
spencerwooo
2021-08-30 14:34:37 +01:00
parent 09366bc842
commit c9d5668575
11 changed files with 684 additions and 1186 deletions
+2 -2
View File
@@ -32,9 +32,9 @@ const fetcher = (url: string, token?: string) => {
*/
export const useStaleSWR = (url: Key, path: string = '') => {
const revalidationOptions = {
revalidateOnMount: !cache.has(url),
revalidateOnMount: !(cache.has(`arg@"${url}"@null`) || cache.has(url)),
revalidateOnFocus: false,
revalidateOnReconnect: false,
revalidateOnReconnect: true,
}
const token =