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

[Runtime] Implement Full watchEffect Functionality in Vue Vapor #67

Closed
LittleSound opened this issue Dec 16, 2023 · 1 comment · Fixed by #69
Closed

[Runtime] Implement Full watchEffect Functionality in Vue Vapor #67

LittleSound opened this issue Dec 16, 2023 · 1 comment · Fixed by #69
Assignees
Labels

Comments

@LittleSound
Copy link
Member

LittleSound commented Dec 16, 2023

The current implementation of effect within the vue-vapor project does not fully conform to the standard watchEffect behavior, particularly lacking in comprehensive flush timing options.

We aim to align vue-vapor's watchEffect with the standard version by introducing detailed flush options (pre, post, sync). A fully realized flush mechanism will facilitate the implementation of the beforeUpdate directive lifecycle hook.
In addition, we plan to introduce a new onEffectCleanup API analogous to onScopeDispose, which will aid in implementing dynamic arguments for v-on. first, extend watchEffect in the runtime-vapor package. If necessary later, extract it to the reactivity package.

@LittleSound LittleSound self-assigned this Dec 16, 2023
@LittleSound LittleSound changed the title [Runtime] Implement Full watchEffect Functionality in Vue Vapor [Runtime] Implement Full watchEffect Functionality in Vue Vapor Dec 16, 2023
@1049906948
Copy link

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

Successfully merging a pull request may close this issue.

3 participants