Description After updating @hey-api/client-fetch to 0.5.3, requests using the TanStack Query plugin do not get sent at all. Possibly caused by 646064d To reproduce (using the StackBlitz example below): click "Generate random pet" -> no r...
just as it would if I wasn't using the persist API, so that users can always refresh to get the latest version of anything. I've tried setting refetchOnReconnect: 'always' in my queryClient, but this doesn't change the behavior. Is there any way aside from changing my staleTime or ...
前端开发的朋友们,你需要增强请求库 前端开发现在使用 axios 或 fetch 效率已经不高了,我们需要增强的请求库,今天推荐两个 Tanstack Query 或 alova.JS ,希望大家使用到项目中,会带来事半功倍的效果!@向军大叔#软件开发#编程#程序猿日常#计算机#人工智能 ...
Currently, refetch() from useQuery only re-executes the query with the same parameters (query key and options) provided during initialization. There is no built-in way to pass different parameters directly to refetch() without changing the query key or using queryClient.fetchQuery(). Problem ...
Describe the bug I tried to find the same problem in the issues, but it wasn't successful( Let's say, I have a QueryClient with the next defaults: defaultOptions: { gcTime: 1000 * 60 * 60, staleTime: 1000 * 60 * 60 } And we have two comp...
I want to display a count down timer to indicate user when the data will refetch. It would be nice if I can get the value from useQuery. 1 Answered by TkDodo Dec 2, 2024 we don’t expose that because we only schedule a setTimeout to trigger the next fetch in N seconds. We...
Describe the bug Using an <input type="file" onChange={onChangeHandler} /> component will bring up a file chooser to chose your files (i.e. for uploads). The problem is, that at least on macOS/Chrome, once the dialog box disappears after...
If followed the provided example for cancellation but unfortunately I get an TypeError: 'abort' called on an object that does not implement interface AbortController. const debouncedId = useDebounce(value, 5); const { data, isFetching } ...
Describe the bug When we refetch a query, the isLoading property doesn't set to true. It always remains false. To Reproduce Steps to reproduce the behavior: Create a request using the useQuery. Extract the refetch method from the returne...
apiKey: process.env.AIRTABLE_ACCESS_TOKEN, }).base(process.env.AIRTABLE_BASE_ID!); const projectsTable = projectsBase(process.env.AIRTABLE_TABLE_ID!); export { projectsTable }; 2 changes: 1 addition & 1 deletion 2 types/index.d.ts Original file line numberDiff line numberDiff line chan...