swr
swr copied to clipboard
React Hooks for Data Fetching
# 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,...
# 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`....
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...
# 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:...
`onDiscarded` (added in #1523) should be documented.
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`...
# 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...