Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork3.3k
Closed
Description
As described inreduxjs/redux#1437 (comment), we can try introducing a separate code path for the fast case where neither state props nor dispatch props depend on the own props. In this case the problem from#99 seems irrelevant and we can do the fast checkbefore callingsetState().
I am not convinced that this is the best solution however. It basically forces computations to happen in thehandleChange() hook which React has no control over. If in the future React learns to prioritize updates, it will not be able to schedule this work for later, but if we keep things as they are today, it will be able to do this just by postponingrender().
Metadata
Metadata
Assignees
Labels
No labels