edemaine / solid-meteor-data

Integrating SolidJS and Meteor reactivity
MIT License
16 stars 2 forks source link

More efficient For? #7

Open edemaine opened 2 years ago

edemaine commented 2 years ago

The array returned by createFind could offer callbacks/signals for specific change events. Is it possible to make a special <FindFor> component that, when a new item is added to the array (addedAt event), just that new child gets added to the DOM? This may not be possible, if the only mechanism is components returning arrays. We could return a binary tree of arrays, though... Or perhaps more practical, a B-tree with branching factor say 100, which is just an array when <100 nodes, but scales better with large arrays.