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

Commit

Permalink
docs: remove stability edge tags
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Oct 11, 2022
1 parent d6865bc commit b5319fc
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 8 deletions.
2 changes: 0 additions & 2 deletions docs/content/1.getting-started/5.routing.md
Expand Up @@ -126,8 +126,6 @@ The `validate` property accepts the `route` as an argument. You can return a boo

If you have a more complex use case, then you can use anonymous route middleware instead.

:StabilityEdge

```vue [pages/post/[id].vue]
<script setup>
definePageMeta({
Expand Down
4 changes: 0 additions & 4 deletions docs/content/3.api/3.utils/define-page-meta.md
Expand Up @@ -92,16 +92,12 @@ interface PageMeta {

Where to redirect if the route is directly matched. The redirection happens before any navigation guard and triggers a new navigation with the new target location.

:StabilityEdge

**`validate`**

- **Type**: `(route: RouteLocationNormalized) => boolean | Promise<boolean> | Partial<NuxtError> | Promise<Partial<NuxtError>>`

Validate whether a given route can validly be rendered with this page. Return true if it is valid, or false if not. If another match can't be found, this will mean a 404. You can also directly return an object with `statusCode`/`statusMessage` to respond immediately with an error (other matches will not be checked).

:StabilityEdge

**`[key: string]`**

- **Type**: `any`
Expand Down
2 changes: 0 additions & 2 deletions docs/content/7.migration/7.component-options.md
Expand Up @@ -114,8 +114,6 @@ See [layout migration](/migration/pages-and-layouts).

The validate hook in Nuxt 3 only accepts a single argument, the `route`. Just as in Nuxt 2, you can return a boolean value. If you return false and another match can't be found, this will mean a 404. You can also directly return an object with `statusCode`/`statusMessage` to respond immediately with an error (other matches will not be checked).

:StabilityEdge

```diff [pages/users/[id].vue]
- <script>
- export default {
Expand Down

0 comments on commit b5319fc

Please sign in to comment.