Skip to content
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

Lightweight task instances for better performance #49

Open
MartinMalinda opened this issue Jul 18, 2021 · 0 comments
Open

Lightweight task instances for better performance #49

MartinMalinda opened this issue Jul 18, 2021 · 0 comments

Comments

@MartinMalinda
Copy link
Owner

Every task instance creates a bunch of computed which can be costly, especially in Vue 2. Task instances are also created often asynchronously - after user interaction or when other async logic finishes and os on. That makes these new computeds not part of the component lifecycle.

Fixing this would require a major overhaul. It would be nice if it would be possible to somehow pass the vm from task to the taskinstance and then to the computed. That would probably fix the issues in Vue 2.

https://antfu.me/posts/async-with-composition-api#explicitly-bound-the-instance - perhaps this trick could be done with computed too?

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

1 participant