3 ms·
This seems pretty nice! Personally, for most cases, I would just fix the actual problem instead (long-running tasks) by either moving them to a Worker, batching
by XCSme 8y ago
This seems pretty nice! Personally, for most cases, I would just fix the actual problem instead (long-running tasks) by either moving them to a Worker, batching the work or using some LOD algorithm to only run to work for the needed granularity. This would improve the UX a lot and is not something that you have to do to often anyway.
- fovc 8y agoThe worker approach doesn't work if you need to update lots of Dom nodes. The example being a highlighter for a search term. While LOD would work (e.g., only update on screen names), the work featured to set that up is non trivial
- danabramov 8y agoThis might also add some context of why we’re not going with just workers (btw we tried that): https://github.com/facebook/react/issues/7942#issuecomment-254984862 https://github.com/facebook/react/issues/7942#issuecomment-2...