You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 3, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: en/api/pages-validate.md
+12-1
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ description: Nuxt.js lets you define a validator method inside your dynamic rout
10
10
-**Type:**`Function`
11
11
12
12
```js
13
-
validate({ params, query }) {
13
+
validate({ params, query, store }) {
14
14
returntrue// if the params are valid
15
15
returnfalse// will stop Nuxt.js to render the route and display the error page
16
16
}
@@ -28,3 +28,14 @@ export default {
28
28
}
29
29
}
30
30
```
31
+
32
+
You can also check some data in your [store](/guide/vuex-store) for example (filled by [nuxtServerInit action](/guide/vuex-store#the-nuxtserverinit-action) before):
0 commit comments