-
Notifications
You must be signed in to change notification settings - Fork 50.4k
Open
greptileai/react-mirror
#141Labels
Resolution: StaleAutomatically closed due to inactivityAutomatically closed due to inactivityStatus: UnconfirmedA potential issue that we haven't yet confirmed as a bugA potential issue that we haven't yet confirmed as a bug
Description
#13903 added the SimpleMemoComponent tag and created the fast path for components created by React.memo where component is just a function and the default props comparison is used. The PR description says:
We could make it so that this also works with custom comparer but that means we have to go through one extra indirection to get to it. Maybe it's worth it, donno.
This is a feature request for making the fast path work with a custom props comparison.
I'm use custom props comparison extensively. I'm struggling to measure the overhead of the slow path -- here's my attempt -- but I'm concerned it may be significant. This also has the side effect of creating an extra node in React DevTools, which makes debugging harder.
Metadata
Metadata
Assignees
Labels
Resolution: StaleAutomatically closed due to inactivityAutomatically closed due to inactivityStatus: UnconfirmedA potential issue that we haven't yet confirmed as a bugA potential issue that we haven't yet confirmed as a bug