swr icon indicating copy to clipboard operation
swr copied to clipboard

React Hooks for Data Fetching

Results 275 swr issues
Sort by recently updated
recently updated
newest added

# Bug report ## Description / Observed Behavior `keepPreviousData:true`, change key, and no Suspense Fallback ## Expected Behavior Fallback can be shown corrently ## Repro Steps / Code Example https://codesandbox.io/p/devbox/exciting-ace-784vcs...

# Bug report ## Description / Observed Behavior type error ## Expected Behavior useSWR infer exact type ## Repro Steps / Code Example https://codesandbox.io/p/devbox/ch95kf ## Additional Context [email protected]

This PR addresses an issue where `isLoading` was incorrectly set to `true` even when `fallbackData` was provided, particularly in SSR scenarios. This led to a "flash of skeleton" UI, which...

# Bug report ## Description / Observed Behavior We've started to migrate our codebase from React 18 to React 19 and have experienced that plenty of "hook order" issues have...

This PR exports the `FetcherResponse` type from the main `swr` package. Currently, `FetcherResponse` is only accessible via `swr/_internal`, which is not intended for public consumption. This change allows developers to...