docs: fix typos (#8976)

This commit is contained in:
silvesterwali 2022-11-14 22:00:58 +08:00 committed by GitHub
parent 4915a39a90
commit 1f645e2a96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -54,7 +54,7 @@ All fetch options can be given a `computed` or `ref` value. These will be watche
::
* **Options (from `useAsyncData`)**:
* `key`: a unique key to ensure that data fetching can be properly de-duplicated across requests, if not provided, it will be generated based on the static code location where `useAyncData` is used.
* `key`: a unique key to ensure that data fetching can be properly de-duplicated across requests, if not provided, it will be generated based on the static code location where `useAsyncData` is used.
* `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.

View File

@ -45,7 +45,7 @@ router.replace({ hash: "#bio" });
## Navigation Guards
`useRouter` composable provides `afterEach`, `beforeEach` and `beforeResolve` helper methods that acts as nagivation guards.
`useRouter` composable provides `afterEach`, `beforeEach` and `beforeResolve` helper methods that acts as navigation guards.
However, Nuxt has a concept of **route middleware** that simplifies the implementation of navigation guards and provides a better developer experience.

View File

@ -43,7 +43,7 @@ Variables that need to be accessible on the server are added directly inside `ru
::ReadMore{link="/guide/going-further/runtime-config"}
::
## Acess Runtime Config
## Access Runtime Config
To access runtime config, we can use `useRuntimeConfig()` composable: