swr
swr copied to clipboard
React Hooks for Data Fetching
Call all revalidators for a key to respect individual isPaused() states (#2333)
# Bug report ## Description / Observed Behavior I was trying to provide fallback data to the useSWRSubscription hook, but no matter what I tried it would not use it....
# Bug report ## Description / Observed Behavior  Pending state flashed briefly, expected to persist for 1 second. ## Repro Steps / Code Example https://codesandbox.io/p/sandbox/swr-suspense-wrzxgn ## Additional Context SWR...
# Bug report ## Description / Observed Behavior Consider the following values during a key change: ``` const { data, isLoading } = useSWRImmutable(someKey) ``` If "someKey" changes, the "data"...
# Bug report ## Description / Observed Behavior ```typescript const { data, mutate: localMutate } = useSWRImmutable( "key", () => ({ quantity: 0 }), { fallbackData: { quantity: 0 },...
After https://github.com/vercel/swr/issues/1832, `useSWR()` throws an error when executing on the server with React 18, even when running on a simulated runtime such as `react-ssr-prepass`. Would you consider a flag for...
# Bug report ## Description / Observed Behavior According to the [documentation](https://swr.vercel.app/docs/mutation#mutate-multiple-items) it is possible to mutate multiple items. I use that because some of my requests contain dynamic query...
https://github.com/vercel/swr/issues/4093
# Bug report ## Description / Observed Behavior When you provide an asynchronous function to the `mutate` function, the duration of the `Promise` does not seem to affect the other...
# Bug report Hey everyone, first of all, thank you for this great library. I'm using it on a website that requires infinite scroll for items with the same initial...