Skip to content
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

Update SWR usage example to SWR v1 #195

Open
pke opened this issue Feb 21, 2022 · 2 comments
Open

Update SWR usage example to SWR v1 #195

pke opened this issue Feb 21, 2022 · 2 comments
Labels
good first issue Good for newcomers

Comments

@pke
Copy link

pke commented Feb 21, 2022

Could you please update the swr example adjusted to the new 1.x API where it no longer exports cache?

Thanks!

@sergiodxa
Copy link
Owner

I don't use SWR, or this lib, anymore, but feel free to send a PR updating the docs on how SWR works and I'll be happy to merge it

@sergiodxa sergiodxa added the good first issue Good for newcomers label Apr 8, 2022
@sergiodxa sergiodxa changed the title useSWR code does not work like this anymore since cache is no longer exported Update SWR usage example to SWR v1 Apr 8, 2022
@isBatak
Copy link
Contributor

isBatak commented Apr 12, 2022

@pke SWR v2 beta is out and now they have built in solution called useSWRMutation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants