File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import refresh from '../client/refresh'
2
2
import inject from '../server/inject'
3
3
import { showWarningNotSupported } from '../shared/log'
4
4
import { addApp } from './additional-app'
5
+ import { addNavGuards } from './nav-guards'
5
6
import { pause , resume } from './pausing'
6
7
import { getOptions } from './options'
7
8
@@ -13,6 +14,11 @@ export default function $meta (options = {}) {
13
14
*/
14
15
return {
15
16
getOptions : ( ) => getOptions ( options ) ,
17
+ setOptions : ( { refreshOnceOnNavigation } = { } ) => {
18
+ if ( refreshOnceOnNavigation ) {
19
+ addNavGuards ( this )
20
+ }
21
+ } ,
16
22
refresh : ( ) => refresh ( this , options ) ,
17
23
inject : ( ) => process . server ? inject ( this , options ) : showWarningNotSupported ( ) ,
18
24
pause : ( ) => pause ( this ) ,
You can’t perform that action at this time.
0 commit comments