Compare commits

...

3 Commits

Author SHA1 Message Date
Daniel Rentz
63e255910e
Merge b9bb37113b into edc299a043 2024-11-21 13:31:50 +00:00
Daniel Rentz
b9bb37113b
Update use-fetch.md 2024-11-21 14:31:46 +01:00
Daniel Rentz
b94af673b8
Update use-fetch.md 2024-11-21 14:29:36 +01:00

View File

@ -30,7 +30,7 @@ If you're using a custom useFetch wrapper, do not await it in the composable, as
::
::note
`data`, `status` and `error` are Vue refs and they should be accessed with `.value` when used within the `<script setup>`, while `refresh`/`execute` and `clear` are plain functions.
`data`, `status`, and `error` are Vue refs, and they should be accessed with `.value` when used within the `<script setup>`, while `refresh`/`execute` and `clear` are plain functions.
::
Using the `query` option, you can add search parameters to your query. This option is extended from [unjs/ofetch](https://github.com/unjs/ofetch) and is using [unjs/ufo](https://github.com/unjs/ufo) to create the URL. Objects are automatically stringified.