Skip to content

Add isLoading and update documentation

Latest
Compare
Choose a tag to compare
@adamdehaven adamdehaven released this 21 Jan 16:16
dbed212

Add isLoading to the return value. Becomes true when there is an ongoing request and data is not loaded yet.

const {
  data, error, isValidating, isLoading, mutate
} = useSWRV(key, fetcher, options)