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 I am using the following provider that used to work with version 1.XX ```js interface Window { addEventListener: any; } declare const window: Window; import { State...

area: cache

# Bug report When using the `optimisticData` function (see #1850) does not use data from SSR fallback as `currentData`. As long as SWR has not revalidated the fallback data you...

area: mutation

* Simplify the export and mark swr context with "use client" * Upgrade bundler

Related to https://github.com/vercel/swr/issues/2856 Opened for discussion really - is there any reason we can't do this?

Bumps [axios](https://github.com/axios/axios) from 0.27.2 to 1.6.0. Release notes Sourced from axios's releases. Release v1.6.0 Release notes: Bug Fixes CSRF: fixed CSRF vulnerability CVE-2023-45857 (#6028) (96ee232) dns: fixed lookup function decorator...

dependencies

Bumps [axios](https://github.com/axios/axios) from 0.23.0 to 1.6.0. Release notes Sourced from axios's releases. Release v1.6.0 Release notes: Bug Fixes CSRF: fixed CSRF vulnerability CVE-2023-45857 (#6028) (96ee232) dns: fixed lookup function decorator...

dependencies

# Bug report ## Description / Observed Behavior I get `useSWR is not a function` every time I use `const { trigger, data, error } = useSWRMutation('email-step', apiPost)` ## Expected...

wontfix
upstream

# Bug report ## Description / Observed Behavior When a global fetcher is configured using SWRConfig it can't be overridden locally by setting fetcher to null - a request still...

bug

# Bug report ## Description / Observed Behavior This happens when you clear the cache, as described at the end of: https://swr.vercel.app/docs/mutation#mutate-multiple-items If a `useSWR` call was done shortly before...

# Bug report I am using swr in my Next.js (using app dir) project. In some sections of my pages, I need swr to fetch data from the browser (no...

reproduction needed