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

Recursion commitWork #203

Merged
merged 5 commits into from
Jan 1, 2021
Merged

Recursion commitWork #203

merged 5 commits into from
Jan 1, 2021

Conversation

yisar
Copy link
Collaborator

@yisar yisar commented Jan 1, 2021

Use recursion instead of effectList.

facebook/react#19673

Fre used arrays to generate the effectlist. If there were too many nodes, the stack would explode.

Now we recurse the original linked list directly. We don't need to generate an effectlist any more. The code is more readable.

@yisar yisar merged commit cd24c15 into master Jan 1, 2021
@yisar yisar deleted the recursion-commitWork branch January 11, 2021 05:59
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.

None yet

1 participant