This repository was archived by the owner on Jul 19, 2025. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 116
feat: directive lifecycle hooks in v-for, v-if and component
#123
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
✅ Deploy Preview for vapor-repl ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for vapor-template-explorer ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Size ReportBundles
Usages
|
8605d92 to
8a2a2ac
Compare
v-forv-for/v-if
Member
Author
|
I created a Demo in Playground to test this feature |
965f31b to
cfca161
Compare
76fbceb to
26ad63b
Compare
Member
Author
|
Optimized the performance. |
1 task
38c9d9f to
f75e834
Compare
2fa93ac to
63a2cd8
Compare
63a2cd8 to
874dd8a
Compare
874dd8a to
f584ca6
Compare
d387242 to
0a707c4
Compare
0a707c4 to
6de3a81
Compare
Member
|
Great job! Thank you for your contribution! |
v-for/v-ifv-for, v-if and component
9 tasks
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Expected Behavior of Directive Lifecycle within
v-forCreate Item
new item:
created->beforeMount->mountedother everyone:
beforeUpdate->updatedall events:
beforeUpdate->created->beforeMount->updated->mountedRemove Item
removed item:
beforeUnmount->unmountedother everyone:
beforeUpdate->updatedall events:
beforeUpdate->beforeUnmount->updated->unmountedMove Item
everyone:
beforeUpdate->updatedI've created new
BlockEffectScopeandcreateChildFragmentDirectivesAPIs that I hope will help make it easier to implement Lifecycle Hooks in Vapor. such as the lifecycle in slots or in components