diff --git a/pages/docs/options.mdx b/pages/docs/options.mdx index 7c3574ed..45d6c30f 100644 --- a/pages/docs/options.mdx +++ b/pages/docs/options.mdx @@ -17,6 +17,7 @@ const { data, error, isValidating, mutate } = useSWR(key, fetcher, options) - `error`: error thrown by `fetcher` (or undefined) - `isValidating`: if there's a request or revalidation loading - `mutate(data?, shouldRevalidate?)`: function to mutate the cached data +- `revalidate()`: function to trigger revalidation manually ## Options