Skip to content

BREAKING CHANGE: deprecate revalidate #1332

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 9, 2021
Merged

Conversation

huozhi
Copy link
Member

@huozhi huozhi commented Aug 8, 2021

  • Remove returned revalidate, use const { mutate } = useSWR(...); mutate() instead
  • Update related examples

@huozhi huozhi requested a review from shuding as a code owner August 8, 2021 16:21
@codesandbox-ci
Copy link

codesandbox-ci bot commented Aug 8, 2021

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 03e23f9:

Sandbox Source
SWR-Basic Configuration
SWR-States Configuration
SWR-Infinite Configuration
SWR-SSR Configuration

@shuding shuding merged commit 3660c4b into master Aug 9, 2021
@shuding shuding deleted the derepcate-revalidate-api branch August 9, 2021 21:31
bpierre added a commit to bpierre/use-nft that referenced this pull request Aug 16, 2021
Adapt to the useSWR() deprecation of revalidate().

See vercel/swr#1332
bpierre added a commit to bpierre/use-nft that referenced this pull request Aug 16, 2021
Adapt to the useSWR() deprecation of revalidate().

See vercel/swr#1332
midas19910709 added a commit to midas19910709/Use-NFT that referenced this pull request May 4, 2022
Adapt to the useSWR() deprecation of revalidate().

See vercel/swr#1332
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants