Shu Ding

Results 403 comments of Shu Ding

Do you think if extending the `compare` API will help? ```js useSWR(key, fetcher, { compare: (a, b, defaultCompare) => { const { timestamp: timestamp1, ...rest1 } = a const {...

Thanks for sharing the details and opening a PR! For SWR's users, I think the best way is still to have a built-in solution for Supabase (and all other popular...

BTW from your code snippet, I suppose the new hook in #1262 is what you need. @computerjazz

Would be great to work on this once we have https://github.com/vercel/swr/issues/172. Callback APIs can be added so a plugin can execute code in: - beforeRevalidate - afterRevalidate - onError -...

You can take a look how https://github.com/vercel/swr-site/tree/main/pages handles "/blog". It has a `blog.en-US.mdx` page as well as a `blog` directory.

Are you using the docs theme or blog theme?

You can have this structure to make the folder work like a page: ``` introudction.mdx introduction/ a.mdx b.mdx ``` And then in the breadcrumb "Introduction" will be a link to...

I was thinking about generating "summary" pages for folders automatically if they're missing, but can't think of a good way.

I'm not 100% sure if `master` (just renamed it to `main`) should use the pre-release as it also includes the Nextra docs (and self-explains). Although we are very close to...

Thanks! We can keep this PR on hold until 2.0 is good to go :)