JM Santos
Oct 19, 2020

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!

JM Santos
JM Santos

No responses yet