-
Notifications
You must be signed in to change notification settings - Fork 75
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
Omitting fetcher function argument is ambiguous? #148
Comments
yes it is ambiguous, thanks for noting! We need to document and maybe add some tests so it's clear. It should be: - To only retrieve a swrv cache response without revalidating, you can omit the fetcher function from the useSWRV call
+ To only retrieve a swrv cache response without revalidating, you can set the fetcher function to `null` from the useSWRV call If it is "omitted" (aka Line 189 in bd6c7e6
|
Relevant swr issue: vercel/swr#738 |
This is great, but the typings for it do not allow |
My PR resolves typing problem. |
Current doc is not ambiguous for me, function calls Yeah, but I think it's good to clarify the doc. |
afaik, the |
The README states:
But later also:
So, which one is it? :) Or am I misunderstanding what omitting means in the first case?
The text was updated successfully, but these errors were encountered: