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

Outdated scheduling in "Design Principles" #3474

Open
zaicevas opened this issue Jan 3, 2021 · 1 comment
Open

Outdated scheduling in "Design Principles" #3474

zaicevas opened this issue Jan 3, 2021 · 1 comment

Comments

@zaicevas
Copy link

zaicevas commented Jan 3, 2021

This is a subtle distinction but a powerful one. Since you don’t call that component function but let React call it, it means React has the power to delay calling it if necessary. In its current implementation React walks the tree recursively and calls render functions of the whole updated tree during a single tick. However in the future it might start delaying some updates to avoid dropping frames.

If something is offscreen, we can delay any logic related to it. ... To be clear, we are not taking advantage of this right now.

As far as I understand, React is taking advantage of delaying updates? facebook/react#6170 (comment)
If that's the case, seems like this part of the docs is outdated.

@aniledev
Copy link

Yeah, the legacy docs on scheduling aren't being updated anymore. The new docs are here as I'm sure you know. =) Might be helpful for anyone who stumble across this issue like me.

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

No branches or pull requests

2 participants