react-tree-walker icon indicating copy to clipboard operation
react-tree-walker copied to clipboard

Support concurrent branch traversal

Open ctrlplusb opened this issue 7 years ago • 2 comments

Likely through an experimental flag for now, but as long as we execute from root towards leaf in a concurrent fashion it should be fine as the parent context would have been configured for children.

ctrlplusb avatar Mar 18 '18 14:03 ctrlplusb

i don't know if this is the same as what i am looking for, but i think it will be nice to have a flag to walk siblings in a Promise.all fashion to reduce server side load duration.

updates: its work concurrent in :

render(){
   return ([<FirstComponent key={1}/>, <SecondComponent key={2}/>])
}

but not for:

render(){
   return (<div> <FirstComponent /> <SecondComponent /></div>)
}

in the second case the walk is called in sequence

CosticaPuntaru avatar Aug 29 '18 07:08 CosticaPuntaru

@CosticaPuntaru That's a good idea. Have you tried it yet?

@ctrlplusb Thoughts?

oyeanuj avatar Dec 23 '18 03:12 oyeanuj