3 ms·
> I need access to this queue to decide whether or not the current render was the last for a very custom React component. (YES maybe I can avoid it but currentl
by darkstar999 5y ago
> I need access to this queue to decide whether or not the current render was the last for a very custom React component. (YES maybe I can avoid it but currently, this is my requirement) the access must be from inside of this component.
I would love to know what problem they are solving. Whenever you start fighting the framework, you should back up and look for a different approach.
- nexuist 5y agoHow is React even supposed to know if this is the last render for a component? If the user changes the state, isn't React obviously going to re-render the component?
- deleted 5y ago[deleted]