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
If I use an async fetcher, I get the following error in my console. It does actually work once the first call resolves. Is there more I should be doing, or some way to get rid of the errors?
vue.runtime.esm.js?2b0e:619 [Vue warn]: Error in getter for watcher "function () {
return "/api/users/".concat(user.value.id, "/profile");
}": "TypeError: Cannot read property 'id' of undefined"
@bnason this is a known issue, unfortunately. Due to vuejs/composition-api#242, I am unable to guard against reference errors thrown in the watchers for the time being. However, you can guard against it by doing a reference check:
If I use an async fetcher, I get the following error in my console. It does actually work once the first call resolves. Is there more I should be doing, or some way to get rid of the errors?
I've setup a simple test project with effectively the same code as shown here https://guuu.io/2020/data-fetching-vue-composition-api/#swrv
Here is the route for completeness sake
The text was updated successfully, but these errors were encountered: