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

It would be great if SWR has some e2e tests covered, since SWR uses a lot of navigator specific APIs, and they varies between environments. We should explore adding e2e...

improvement

# Bug report ## Description / Observed Behavior swr/infinite's `compare` function is called both with the array of pages, and the pages themselves. This doesn't seem to be documented anywhere...

There does not seem to be an equivalent of the React Query's [useQueries hook](https://react-query.tanstack.com/guides/parallel-queries#dynamic-parallel-queries-with-usequeries) in SWR. Being able to run a variable number of queries in parallel using SWR and...

feature request

Just as an example, the only mentions of `optimisticData` are ``` const options = { optimisticData: user, rollbackOnError: true } ``` and > optimisticData: data to immediately update the client...

documentation
improvement
area: mutation

# Bug report ## Description / Observed Behavior ``` Uncaught TypeError: can't access property 0, _a is undefined useSWRHandler index.mjs:634 useSWRArgs index.mjs:612 Article App.js:8 React 9 workLoop scheduler.development.js:266 flushWork scheduler.development.js:239...

# Bug report I use `swr` with `graphql-request` and I am struggling with the automatic retry on an api error. Only a single request is made until the error is...

# Bug report ## Description / Observed Behavior I'm using SWR with Supabase. The fetching logic is similar for each query, so I'd like to use a single fetcher and...

The app is crashed on opening any page in dev mode, (prod runs OK). The error is thrown from version **1.2.0** ``` RangeError: Value undefined out of range for undefined...

reproduction needed

Adding a function to the configuration to replace `stableHash`. This pr is meant to resolve issues discussed in #1846. It adds a hash function in the configuration that defaults to...

### Discussion in https://github.com/vercel/swr/discussions/1897 Originally posted by **jacobhq** March 30, 2022 Now that react 18 has been released, we will need to complete some tasks: - [ ] Update callouts...

area: suspense