diff options
author | eug-vs <eug-vs@keemail.me> | 2020-08-10 12:00:01 +0300 |
---|---|---|
committer | eug-vs <eug-vs@keemail.me> | 2020-08-10 12:18:27 +0300 |
commit | a8424edaea142f159022506dc8c8799718469d30 (patch) | |
tree | 27c256c8c724598cedb8683fa031d1e2e3a2b513 /src | |
parent | a5c7950b65652d105c8eff22d14aeeacade6d31f (diff) | |
download | which-ui-a8424edaea142f159022506dc8c8799718469d30.tar.gz |
feat: do not revalidate Feed on focus
Diffstat (limited to 'src')
-rw-r--r-- | src/hooks/APIClient.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hooks/APIClient.ts b/src/hooks/APIClient.ts index 59bf4fc..2322af4 100644 --- a/src/hooks/APIClient.ts +++ b/src/hooks/APIClient.ts @@ -21,7 +21,7 @@ export const useProfile = (id: string) => { }; export const useFeed = () => { - return useSWR('/feed', fetcher, arrayOptions); + return useSWR('/feed', fetcher, { ...arrayOptions, revalidateOnFocus: false }); }; export const useFeedback = () => { |