swrv icon indicating copy to clipboard operation
swrv copied to clipboard

Retry on error after the component has been unmounted

Open tochoromero opened this issue 2 years ago • 1 comments

When a SWRV calls fails by default it will keep trying to fetch data. This is great, the problem is the retries keep happening even after the component has been unmounted.

I believe it just need to check for unmounted here

tochoromero avatar Aug 17 '21 21:08 tochoromero

@tochoromero sorry for the slow turnaround on responding to this, do you feel up to submitting a PR?

darrenjennings avatar Oct 10 '21 20:10 darrenjennings

This is resolved as of 1.0.1 🚀

adamdehaven avatar Nov 02 '22 21:11 adamdehaven