Shu Ding

Results 96 issues of Shu Ding

Need to fork (or contribute to) Phenomenon to make this available.

Currently we are generating extra JS assets like `build-manifest.js` for the SSR middleware to consume. This PR removes it with directly importing those manifests. This is also needed by #31971,...

type: next
created-by: Next.js team

⚠️ This proposal isn't finalized yet. An abort signal will always be passed to `fetcher` via the option: ```js useSWR('/api', (url, { signal }) => { return fetch(url, { signal...

feature request
RFC

It would be great if SWR has some e2e tests covered, since SWR uses a lot of navigator specific APIs, and they varies between environments. We should explore adding e2e...

improvement

With `useSWRSuspense` you can avoid waterfall in suspense mode: ```js function App () { const [user, movies] = useSWRSuspense(()=> { const { data: user } = useSWR('/api/user') const { data:...

feature request
on hold
RFC

`onDiscarded` (added in #1523) should be documented.

documentation

X-ref: https://github.com/nandorojo/swr-react-native/issues/18 We need to make sure that `mutate()` invalidates concurrent requests and deduplicates them. It’ll be similar to this test case, but without a target value (only revalidates): https://github.com/vercel/swr/blob/d45b05dd3c2fc2e0627bd916f1a346fc3e1b1e5d/test/use-swr-local-mutation.test.tsx#L361-L384

bug
area: mutation

It would be helpful to introduce a new state `updatedAt`, which is a timestamp representing the last time we get the data from the fetcher or mutator. ## Use Case...

feature request

More information about this can be found in https://request-cancellation-test.vercel.app. What SWR can help here is to provide an `ignoreCancellationErrors` option which skips `onError` and `onErrorRetry` callbacks when an error matches...

feature request
discussion

Add `tslib` and enable `importHelpers` for tsc.

on hold