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

# The Problem I will show you the problem with this [code sandbox](https://codesandbox.io/p/sandbox/swr-mutate-with-populatecache-type-error-9h9ynk). This container uses [code sandbox introduced in swr docs](https://swr.vercel.app/examples/optimistic-ui) with some changes. I just added TypeScript and...

# Bug report ## Description / Observed Behavior ```tsx ``` Combined with an inner component of ```tsx const { data } = `useSWR('a', () => { console.log('I should never be...

# Bug report ## Description / Observed Behavior In my usage of the `useSWRImmutable` hook, my component has a dynamic key as state. Upon an update to this key, I...

# Bug report ## The key type is not type safe as it is evaluated to `any` What kind of issues did you encounter with SWR? ## I expect the...

![image](https://github.com/vercel/swr/assets/13065289/f1478771-ab9b-4e6f-a001-573515790786) swr: 2.2.5

info: v2.2.5 # Bug report I am not really sure if it's bug but I believe it to be a type bug. ## Description / Observed Behavior In my current...

Use the react-router-v6 version and use Outlet to map sub-components. When the navigation is rendered, the const { data } = useSWR('/api/user', fetcher) data of the sub-component will be re-rendered....

reproduction needed

I just add two examples of xior, hope can get merged! 🤩 [xior](https://github.com/suhaotian/xior) is a lite request lib based on **fetch** with plugins support and similar API to axios.

# Bug report ## Description / Observed Behavior An error will occur if the fallback option for useSWR is undefined. ```ts const { data, error } = useSWR("/api/hello", { fallback:...