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 a simple SWR/msw/react/jest setup where in one test, I have instructed MSW to return with one value from an endpoint,...

documentation
area: testing

# Bug report ## Description / Observed Behavior type of `data` ## Expected Behavior type of `data` should be `Data`(not `Data | undefined`) if `fallbackData` has provided in type `Data`....

area: typing

SWR would't send requests of same key anymore but return the cache of it within stale time when stale timer expires, SWR would resend request of current page on mounted...

feature request
discussion
area: cache

# Bug report ## Description / Observed Behavior If an error is thrown in the fetcher given to useSWR, SWR just swallows it and it does not bubble. ## Expected...

# Bug report ## Description / Observed Behavior I'm using `useSWR` in a component that I test with react-testing-library. In most cases the unit test passes, but sometimes it fails...

With `useSWRSuspense` you can avoid waterfall in suspense mode: ```js function App () { const [user, movies] = useSWRSuspense(()=> { const { data: user } = useSWR('/api/user') const { data:...

feature request
on hold
RFC

`onDiscarded` (added in #1523) should be documented.

documentation

Seeding work to keep track of the `updatedAt` time. #1703 At the top of my head I can think of a few things to do: - [x] Are tests exhaustive...

# Bug report I had several `react-native` tests reporting "open handles" which prevented jest from finishing. `Jest has detected the following 1 open handle potentially keeping Jest from exiting: timeout`...

documentation
improvement

# Bug report ## Description / Observed Behavior I am trying to use the graphql-request library as recommended in the documentation. If my graphql query contains the @defer directive in...

feature request