Re:Scheduling in React
by akesablyan on Thursday March 07, 2019 @02:14PM
(#19331146)
I think this is a great point made. I wonder if it makes sense to build into the core of react to have render method execute on priority levels configured for the components themselves. I agree that this adds a good deal of complexity otherwise for quicker projects.
[ Parent
| on HN ]
Re:Scheduling in React
by danabramov on Thursday March 07, 2019 @05:44PM
(#19333370)
What complexity are you referring to? If you don’t use finer grained control then your React apps work exactly the same ways as they did before. The extra control is opt-in and you don’t have to use it.
Re:Scheduling in React
by philipp-spiess on Thursday March 07, 2019 @05:06PM
(#19333026)
Something like this is definitely possible. For example a <div hidden> could apply all updates using a lower priority. This can be used to detect offscreen content or non-active tabs.