We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b73b8ed commit 9d14387Copy full SHA for 9d14387
src/shared/$meta.js
@@ -2,6 +2,7 @@ import refresh from '../client/refresh'
2
import inject from '../server/inject'
3
import { showWarningNotSupported } from '../shared/log'
4
import { addApp } from './additional-app'
5
+import { addNavGuards } from './nav-guards'
6
import { pause, resume } from './pausing'
7
import { getOptions } from './options'
8
@@ -13,6 +14,11 @@ export default function $meta (options = {}) {
13
14
*/
15
return {
16
getOptions: () => getOptions(options),
17
+ setOptions: ({ refreshOnceOnNavigation } = {}) => {
18
+ if (refreshOnceOnNavigation) {
19
+ addNavGuards(this)
20
+ }
21
+ },
22
refresh: () => refresh(this, options),
23
inject: () => process.server ? inject(this, options) : showWarningNotSupported(),
24
pause: () => pause(this),
0 commit comments