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 SWR sometimes accidentally revalidates locally mutated data (i.e. data that has been mutated locally without revalidation but isn't yet saved in our...

feature request

Writing tests with SWR is very painful. If you don't know the magic incantation in #781, you can easily have nondeterministic tests that can be quite difficult to debug. I'd...

I have a cached backend API, and I'd like to have a 'countdown clock' timer on the frontend. `refreshInterval` covers being able to actually perform the update, but not having...

feature request

# Bug report ## Description / Observed Behavior I have a `UserDialog` component that can either create a new user or edit an existing user. When creating a new user,...

Would it be possible to add the [fetchPolicy](https://www.apollographql.com/docs/react/api/react-hoc/#optionsfetchpolicy) option similar to what's available in Apollo GraphQL hooks? Apollo can do the SWR pattern using fetchPolicy: ‘cache-and-network’. I'd like to see...

discussion

# Bug report ## Description / Observed Behavior When trying to use the doco's suggestion of passing `null` as the URL (https://swr.vercel.app/docs/conditional-fetching), Axios throws an exception: ``` stack: 'TypeError: Cannot...

# Bug report ## Description / Observed Behavior As the title says, I have a useSharedState hook that is used to pass state between components without prop drilling. This hook...

Use a simpler structure with grouping all source code, listing all exports files, removing all extra package.json and tsconfig.json. For build script it only needs `bunchee`, then everything will be...

on hold

# Bug report ## Description / Observed Behavior This bug occurs when using the new `keepPreviousData` option (in v2 beta) together with `fallbackData` and disabling the automatic revalidation features. The...

# Bug report ## Description / Observed Behavior ```ts import useSWR from "swr" async function fetcher(args: readonly [T]): Promise { return args[0] } function App() { const foo = useSWR(["foo"]...

area: typing