From 1b6289f60f70dee0f97f6516ea662e91297a0d3c Mon Sep 17 00:00:00 2001 From: Yuki Inoue Date: Wed, 22 Jun 2022 19:41:34 +0900 Subject: [PATCH] docs(api): add watch parameter in `useFetch` options (#5562) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: 井上裕貴 --- docs/content/3.api/1.composables/use-fetch.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/content/3.api/1.composables/use-fetch.md b/docs/content/3.api/1.composables/use-fetch.md index b1d4256066..ff286de4a6 100644 --- a/docs/content/3.api/1.composables/use-fetch.md +++ b/docs/content/3.api/1.composables/use-fetch.md @@ -22,6 +22,7 @@ type UseFetchOptions = { default?: () => DataT transform?: (input: DataT) => DataT pick?: string[] + watch?: WatchSource[] } type DataT = { @@ -47,6 +48,7 @@ type DataT = { * `server`: Whether to fetch the data on the server (defaults to `true`). * `default`: A factory function to set the default value of the data, before the async function resolves - particularly useful with the `lazy: true` option. * `pick`: Only pick specified keys in this array from the `handler` function result. + * `watch`: watch reactive sources to auto-refresh * `transform`: A function that can be used to alter `handler` function result after resolving. ## Return values