swr icon indicating copy to clipboard operation
swr copied to clipboard

React Hooks for Data Fetching

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

# Bug report ## Description / Observed Behavior useSWRInfinite hides errors within getKey (at least on the first page load). The error in getKey seems to cause the fetcher not...

area: infinite

After upgrading to swr 1.1 (currently using 1.1.1) we have observed the following behavior: When calling `mutate` on a key that is no cached, a `TypeError undefined is not a...

bug
reproduction needed
area: mutation

## Motivation This pr intends to setup playwright component test for swr. So we can add e2e test easily in the future. Also swr uses a lot of navigator specific...

# Bug report ## Description / Observed Behavior with simple next.js project i am suing useSwr in index.js and i saw that console.log(data); just after useSwr is called twice no...

Logs caught errors in getKey within useSWRInfinite

This is using React Native 68 and React 17, in case it has to do with the lack of Suspense. After having migrated to SWR 2, we're starting to see...

### Discussed in https://github.com/vercel/swr/discussions/2092 Originally posted by **RenaudAubert** July 29, 2022 Hi 👋 First of all a big thanks for this amazing library. I've noticed that 2 of the `mutate`...

feature request

# Bug report ## Description / Observed Behavior The docs (and typescript types!) show that the mutate function returned by the useSWRInfinite hook works the same as the useSWRHook Docs:...

bug
area: pagination

# Bug report ## Description / Observed Behavior Unmounting the component while the data is being fetched i.e; `isValidating` is true, doesn't trigger refetch on the next mount, even if...

# Bug report ## Description / Observed Behavior I was trying to make multiple dynamic calls using useSWRInfinite as suggested [here](https://github.com/vercel/swr/discussions/786#discussioncomment-136486): my idea was to keep track of the dynamic...