Skip to content
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.

Asynchronous Rendering #18

Open
LPGhatguy opened this issue Jan 25, 2018 · 3 comments
Open

Asynchronous Rendering #18

LPGhatguy opened this issue Jan 25, 2018 · 3 comments
Assignees

Comments

@LPGhatguy
Copy link
Contributor

Sometimes, complicated trees result in lots and lots of re-renders.

I'd like to reduce the amount of work that Roact does by batching it and making rendering asynchronous, like React does!

Dan Abramov recently posted a good comment as to why React's setState is asynchronous, a change we'll eventually have to make: facebook/react#11527 (comment)

@LPGhatguy
Copy link
Contributor Author

#48 could include laying the groundwork for this.

@LPGhatguy
Copy link
Contributor Author

The React team posted an update including new async-friendly lifecycle hooks.

https://reactjs.org/blog/2018/03/27/update-on-async-rendering.html

@LPGhatguy
Copy link
Contributor Author

This should be implemented by checking for components to re-render using BindToRenderStep with RenderPriority.Last.

This was referenced May 26, 2018
@LPGhatguy LPGhatguy added this to To do in Roact Priorities Jun 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
No open projects
Development

No branches or pull requests

1 participant