mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-28 20:21:52 +01:00
Fix flash loading response viewer
This commit is contained in:
@@ -5,7 +5,6 @@ import { getResponseBodyText } from '../lib/responseBody';
|
||||
export function useResponseBodyText(response: HttpResponse) {
|
||||
return useQuery<string | null>({
|
||||
queryKey: ['response-body-text', response?.updatedAt],
|
||||
initialData: null,
|
||||
queryFn: () => getResponseBodyText(response),
|
||||
}).data;
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user