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

Rendering from a specific node #356

Open
Yomguithereal opened this issue Jan 4, 2016 · 1 comment
Open

Rendering from a specific node #356

Yomguithereal opened this issue Jan 4, 2016 · 1 comment

Comments

@Yomguithereal
Copy link
Contributor

Just opening the discussion here: could it be possible to implement a way to re-render the tree but from one specific node?

I know that diffing the whole tree is not that costly but on large nested apps and combined to redux' O(n) nature when solving actions, toggling a simble combo box might have a disproportionate cost.

I tend to use cursors and a single atom as my store and know precisely which part of the state has been updated when an action is triggered. So I am wondering whether there could be a way to re-render the tree from a given node when it is known.

@anthonyshort
Copy link
Owner

There was some discussion about this in #346 and #337. It should be solvable, and should be a renderer-specific optimization. It'll still need to walk down the tree from the top, but we'll make sure they're skipping as many sub-trees, diffs, and patches as possible.

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