swr icon indicating copy to clipboard operation
swr copied to clipboard

React Hooks for Data Fetching

Results 275 swr issues
Sort by recently updated
recently updated
newest added

# Bug report ## Description / Observed Behavior When using useSWRInfinite with {revalidateOnMount: true, revalidateFirstPage: false}, if there is a useLayoutEffect with change state in it, the component will not...

### Feature Request https://x.com/asidorenko_/status/1877342799869194603 when there's already an RSC data fetching as the fallback, skip the first revalidation when onmount. And you can still re-enable it manually.

improvement

# Bug report I am trying to access global cache using useSWRConfig and updated cache is delayed by few seconds. `const { cache } = useSWRConfig ` is there any...

Happy new year, love your project

# Bug report ## Description / Observed Behavior What kind of issues did you encounter with SWR? I have Next App Router Server Fetch to cache the initial response and...

# Bug report FetcherResponse type, which I believe is retuend by `preload` is not exported. ## Description / Observed Behavior In the following code: ```ts import useSWR, { preload, type...

# Bug report ## Description / Observed Behavior useSWRInfinite could not load new page correctly after `clear` and `refresh` ## Expected Behavior useSWRInfinite should send new request. ## Repro Steps...

area: pagination
area: infinite

# Bug report ## Description / Observed Behavior I made changes to `data` returned from useSWR, to format the data. This updated the SWR cache with the formatted data, which...

I apologize for creating this PR without waiting for feedback on the discussion. This PR implements the change proposed in https://github.com/vercel/swr/discussions/4196. I was planning to wait for a response in...