svelte-drama/swr

revalidateOnFocus, revalidateOnReconnect?

olehmisar opened this issue · 2 comments

Are there plans to add revalidateOnFocus and revalidateOnReconnect? I can help adding these options

revalidateOnFocus should no longer be necessary. The use of BroadcastChannels in the most recent rewrite should keep tabs in sync, even when hopping between tabs and editing data.

revalidateOnReconnect is more or less just part of the default now. Stores with active subscribers will refetch data if maxAge is exceeded when the network transitions to "online".

If you had specific use cases for those that is no longer covered, it would be interesting to discuss them.

i've been using this swr for over 2 weeks and i don't fee that I need these functions