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 I have functionality in the app which includes list with loading during scrolling + list filters.I am using **useSWRInfinite** with **fallbackData** option....

documentation

Let's suppose my endpoint has changing data that takes time to (re)generate. I use `stale-while-revalidate` in `Cache-Control` so the Vercel Edge Cache returns its stale data while refreshing. According to...

feature request

# Bug report ## Description / Observed Behavior When I use .mutate(), all pages are revalidated even tough nothing changed in the first page, and the keys didn't change This...

discussion
area: mutation
area: infinite

# Bug report ## Description / Observed Behavior If I understand correctly, the `mutate` method for the old key changes the new object that has a different key. The key...

discussion
area: mutation

# Bug report ## Description / Observed Behavior > What kind of issues did you encounter with SWR? When [calling mutate with a function as 2nd argument](https://swr.vercel.app/docs/mutation#returned-data-from-mutate) and an error...

discussion
area: mutation

# Bug report ## Description / Observed Behavior I have multiple endpoints and possible queries for message data fetched via SWR: - `/api/messages` - All messages. - `/api/messages?archive=true` - Archived...

feature request
area: mutation

# Bug report ## Description / Observed Behavior I prefetch and mutate some data when the user hovers a link using `mutate(key, data, false)` When the user clicks the link,...

area: mutation

X-ref: https://github.com/nandorojo/swr-react-native/issues/18 We need to make sure that `mutate()` invalidates concurrent requests and deduplicates them. It’ll be similar to this test case, but without a target value (only revalidates): https://github.com/vercel/swr/blob/d45b05dd3c2fc2e0627bd916f1a346fc3e1b1e5d/test/use-swr-local-mutation.test.tsx#L361-L384

bug
area: mutation

# Bug report ## Description / Observed Behavior version: 1.0.1, key has change, never revalidate ## Repro Steps / Code Example [CodeSandbox](https://codesandbox.io/s/goofy-silence-4nqf7?file=/src/App.js) ## Context https://github.com/vercel/swr/pull/1430#issuecomment-928890102

bug
reproduction needed

Hello! React-query just released their devtools extension https://github.com/tannerlinsley/react-query-devtools. Do you have such plans in near future? I'm trying to decide which library to use and I almost desided to use...

feature request