Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

Commit

Permalink
Update useFetch with query option
Browse files Browse the repository at this point in the history
Update useFetch with description and example of query option, which is inherited from ohmyfetch, resolves #8708
  • Loading branch information
Aietes committed Nov 5, 2022
1 parent 3121114 commit 8c07231
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/content/3.api/1.composables/use-fetch.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ const { data, pending, error, refresh } = await useFetch('https://api.nuxtjs.dev
pick: ['title']
})
```
## Adding Query Search Params
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.

Expand Down

0 comments on commit 8c07231

Please sign in to comment.