Kong/swrv

Omitting fetcher function argument is ambiguous?

Aberta

#148 aberto em 21 de mar. de 2021

 (6 comentários) (0 reação) (0 responsável)TypeScript (77 forks)github user discovery
help wanted

Métricas do repositório

Stars
 (2.280 estrelas)
Métricas de merge de PR
 (Métricas PR pendentes)

Description

The README states:

Note that fetcher can be any asynchronous function, so you can use your favorite data-fetching library to handle that part. If ommitted, swrv uses the Fetch api.

But later also:

To only retrieve a swrv cache response without revalidating, you can omit the fetcher function from the useSWRV call.

So, which one is it? :) Or am I misunderstanding what omitting means in the first case?

Guia do colaborador