fix(reactivity): fix call sequence of ontrigger in effect #10501
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.
The use of
double-linked lists
directly disrupts the original(main branch
) execution order ofonTrigger
in theeffect
.original
:https://play.vuejs.org/#eNqNlE1v2zAMhv8Kp0tSNHOWj1PgBNiGAtsO27AV2KHqwXNox50seZKcBTD830fJH3XjoK0PgcX3eRlSEl2x90URHEtkGxaaWGeFBYO2LEBEMt1yZg1nOy6zvFDaQgUakxkmCcYWaki0ymFC7gmXXMZKGgu5SWHrsOnkEwqh4JfSYv9mctUBBv9uQJb5b9R394Te3fdKa3xHbBezOktT1AuSplew3Tl7UJTmMF30GVtmOWaW58xqzKzOmfWYWfuKmr6nXEKrV+4VwATHSJToFvXM/bZxJW+bjJu+DS87iBK+Ih3AAHLPE3AEXzBcNF00dsV3zxk/bmb9BB+aqbnz4CDbONOqxzqDz/DCZi6Hm9m2c33dHKYSGAiVTukESQznzdWmi0wLi3khIou0AggPi11V+Vtb1+GcVj6ayaK0cHybqz0KGgPSOYM5ieF84GczGhD6vyRLgwejJE2RL5ezWOVFJlB/K2xG9XC26RrhLKKx+PfFx6wusW2ZPAeM/1yIP5iTi3H2XaNBfUTOes1GOkXbyDc/v+KJ3nuRqi8F0c+IP5D2qnQ1NtiHUu6p7AHnq/3s5z+T6a25OVmUpmvKFfp4VpzRx+DjM60/lrsK1t7HZc3q/+0zZMM=
minor
: the opposite of the original result.