From be8036098f52d38d2940acca09758dbe3321d737 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Thu, 10 Nov 2022 10:56:36 +0100 Subject: [PATCH] chore: lint docs --- 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 06a06a8736..3d7f8ed69e 100644 --- a/docs/content/3.api/1.composables/use-fetch.md +++ b/docs/content/3.api/1.composables/use-fetch.md @@ -88,6 +88,7 @@ const { data, pending, error, refresh } = await useFetch('https://api.nuxtjs.dev pick: ['title'] }) ``` + Adding Query Search Params: Using the `query` option, you can add search parameters to your query. This option is extended from [unjs/ohmyfetch](https://github.com/unjs/ohmyfetch) and is using [ufo](https://github.com/unjs/ufo) to create the URL. Objects are automatically stringified. @@ -98,6 +99,7 @@ const { data, pending, error, refresh } = await useFetch('https://api.nuxtjs.dev query: { param1, param2: 'value2' } }) ``` + Results in `https://api.nuxtjs.dev/mountains?param1=value1¶m2=value2` Using [interceptors](https://github.com/unjs/ohmyfetch#%EF%B8%8F-interceptors):