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

### TLDR Adds an option `forceRevalidateOnReconnect`, which when set to `true`, triggers a revalidation after reconnecting even when `dedupingInterval` hasn't passed yet. To compensate spotty network connections, an option `reconnectThrottleInterval`...

# Bug report ## Description / Observed Behavior Having both a request without suspense, and a request with suspense, the request without suspense will not start until the other one...

# Bug report The `mutate` function from ```tsx import { mutate } from "swr"; ``` is a no-op when a custom cache provider is used. ## Description / Observed Behavior...

# Bug report ## Description / Observed Behavior I created a wrapper of useSWR hook to handle abortion on request when my component gets unmounted. When I'm using my custom...

# Bug report ## Description / Observed Behavior When I perform some mutation then setSize(1), the cached response for cache of pages with greater number are not updated therefore get...

How can we use useSWR like below to do type narrowing for data? ```tsx const SWRComp = () => { const swrQuery = useSWR(...) if(swrQuery.data !== undefined){ return {swrQuery.data} }...

area: typing

# Bug report ## Description / Observed Behavior What kind of issues did you encounter with SWR? When using `useSWRMutation`, the returned `trigger` function would allow the developer to pass...

* aggregate stale tests into a single group * collect render info in `` `onRender` props instead of function body.