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
The merge strategy receives the value of that option defined on the parent and child instances as the first and second arguments, respectively. The context Vue instance is passed as the third argument.
46
+
47
+
### devtools
60
48
61
49
-**Type:**`Boolean`
62
50
63
-
-**Default:**`false`
51
+
-**Default:**`true` (`false` in production builds)
64
52
65
53
-**Usage:**
66
54
67
55
```js
68
-
Vue.config.silent=true
56
+
// make sure to set this synchronously immediately after loading Vue
57
+
Vue.config.devtools=true
69
58
```
70
59
71
-
Suppress all Vue.js logs and warnings.
60
+
Configure whether to allow [vue-devtools](https://github.com/vuejs/vue-devtools) inspection. This option's default value is `true` in development builds and `false` in production builds. You can set it to `true` to enable inspection for production builds.
72
61
73
-
### async
62
+
### errorHandler
74
63
75
-
-**Type:**`Boolean`
64
+
-**Type:**`Function`
76
65
77
-
-**Default:**`true`
66
+
-**Default:**Error is thrown in place
78
67
79
68
-**Usage:**
80
69
81
70
```js
82
-
Vue.config.async=false
71
+
Vue.config.errorHandler=function (err, vm) {
72
+
// handle error
73
+
}
83
74
```
84
75
85
-
When async mode is off, Vue will perform all DOM updates synchronously upon detecting data change. This may help with debugging in some scenarios, but could also cause degraded performance and affect the order in which watcher callbacks are called. **`async: false` is not recommended in production.**
76
+
Assign a handler for uncaught errors during component render and watchers. The handler gets called with the error and the Vue instance.
86
77
87
-
### devtools
78
+
### keyCodes
88
79
89
-
-**Type:**`Boolean`
80
+
-**Type:**`Object`
90
81
91
-
-**Default:**`true` (`false` in production builds)
82
+
-**Default:**`{}`
92
83
93
84
-**Usage:**
94
85
95
86
```js
96
-
// make sure to set this synchronously immediately after loading Vue
97
-
Vue.config.devtools=true
87
+
Vue.config.keyCodes= { esc:27 }
98
88
```
99
89
100
-
Configure whether to allow [vue-devtools](https://github.com/vuejs/vue-devtools) inspection. This option's default value is `true` in development builds and `false` in production builds. You can set it to `true` to enable inspection for production builds.
0 commit comments