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
That will always point to the latest version of vue-async-computed.
103
103
You probably want to instead pin it to a specific version:
104
104
-->
@@ -133,7 +133,7 @@ Vue.use(AsyncComputed)
133
133
Vue instance as they resolve. Just as with normal computed
134
134
properties, if the data the property depends on changes
135
135
then the property is re-run automatically.
136
-
136
+
137
137
You can almost completely ignore the fact that behind the
138
138
scenes they are asynchronous. The one thing to remember is
139
139
that until a asynchronous property's promise resolves
@@ -185,7 +185,7 @@ new Vue({
185
185
returnVue.http.get('/post/'+this.postId)
186
186
.then(response=>response.data.postContent)
187
187
},
188
-
// The computed proporty `blogPostContent` will have
188
+
// The computed proporty `blogPostContent` will have
189
189
// the value 'Loading...' until the first time the promise
190
190
// returned from the `get` function resolves.
191
191
default:'Loading...'
@@ -392,10 +392,14 @@ new Vue({
392
392
393
393
By default, in case of a rejected promise in an async computed property, vue-async-computed will take care of logging the error for you.
394
394
395
-
If you want to use a custom logging function, the plugin takes an `errorHandler` option, which should be the function you want called with the error information. By default, it will be called with the error's stack trace as an argument, but if you want the raw error itself you can set the
396
-
`useRawError` option to `true`.
395
+
If you want to use a custom logging function, the plugin takes an `errorHandler`
396
+
option, which should be the function you want called with the error information.
397
+
By default, it will be called with only the error's stack trace as an argument,
398
+
but if you register the `errorHandler` with `useRawError` set to `true` the
399
+
function will receive the raw error, a reference to the `Vue` instance that
0 commit comments