CFE-17 Fixed bug revalidating call history

This commit is contained in:
AmirHossein Mahmoodi
2023-11-20 10:41:00 +03:30
parent eafade3eca
commit 16a890fe82

View File

@@ -16,7 +16,7 @@ const useCallerHistory = (call_id, phone_number, max_size) => {
};
const {data, isLoading} = useSWR(`${GET_CALLER_HISTORY}?phone_number=${phone_number}&size=${max_size}`, fetcher, {
revalidateIfStale: false,
revalidateIfStale: true,
revalidateOnFocus: false,
revalidateOnReconnect: false,
keepPreviousData: true