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

perf(scheduler): remove unnecessary statement currentPreParentJob #4384

Closed
wants to merge 1 commit into from

Conversation

gdh51
Copy link

@gdh51 gdh51 commented Aug 18, 2021

currentPreParentJob added in #1777,it aims to resolve the duplicate render by pre-flush watchers.But in v3.2.0 the example of #1777, it still render twice when prop value change.(because in function triggerEffect(), it'll be added into queue by effect.allowRecurse)

Later in v3.2.4, this issue fixed by set allowRecurse to false before function updateComponentPreRender().

So it's time to delete it.

@gdh51 gdh51 closed this Sep 28, 2021
@gdh51 gdh51 deleted the chore/remove-current-pre-parent-job branch September 28, 2021 02:45
@gdh51 gdh51 restored the chore/remove-current-pre-parent-job branch September 28, 2021 03:09
@gdh51 gdh51 reopened this Sep 28, 2021
@skirtles-code
Copy link
Contributor

The code for the scheduler has undergone some significant changes since this PR was opened. From what I can tell, the most important parts of this PR apply to code that no longer exists.

@gdh51 Do you think this can be closed now? Or is there some part of it that is still relevant to the current version of the scheduler?

@gdh51 gdh51 closed this Apr 1, 2023
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

Successfully merging this pull request may close these issues.

2 participants