Skip to content

Recursion commitWork#203

Merged
yisar merged 5 commits intomasterfrom
recursion-commitWork
Jan 1, 2021
Merged

Recursion commitWork#203
yisar merged 5 commits intomasterfrom
recursion-commitWork

Conversation

@yisar
Copy link
Copy Markdown
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.

1 participant