Skip to content

Conversation

@yisar
Copy link
Member

@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.

2 participants