I like `swr`. I used it on one of my previous project before and it worked well. Like how the data is saved into cache and how it will re-fetch it and you will get the data instantly without refreshing. It will poll for data in the background. It's so seemless.

I think what I misunderstood on that library before is that I thought I can use it on Post/Put/Delete operations but it turns out I will fallback to the "native approach". I believe that is due to the fact that those operations are complex to handle in a generic manner.

I do suggest `swr` if you care on those things like background refresh of the data, caching, and other stuffs but otherwise, have the option to follow native approaches.

Thank you for your thoughts! Grateful for your time. Happy coding buddy!

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store