Skip to content

asyncComputed return only default value #93

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
durygus opened this issue Feb 14, 2020 · 2 comments
Closed

asyncComputed return only default value #93

durygus opened this issue Feb 14, 2020 · 2 comments

Comments

@durygus
Copy link

durygus commented Feb 14, 2020

Please explain to me why when I run this code I get the default value:
Vue.use(AsyncComputed); export default { asyncComputed: { a: { get() { return 1; }, default() { return 0; } }, mounted() { console.log(this.a) } }

I apologize for the unformed code. For some reason, the code insertion does not work.

@durygus
Copy link
Author

durygus commented Feb 15, 2020

And generally nothing is returned by 'return' from asyncComputed values

@foxbenjaminfox
Copy link
Owner

This seems related to #74, and if so it's likely that #95 will fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants