Skip to content

Commit 95e3287

Browse files
myNameIsDubh
and
bh
authoredApr 10, 2021
fix:displayName error displayed in development tool (#1711)
Co-authored-by: bh <abel_sun@yunquna.com>
1 parent 5b4b576 commit 95e3287

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/components/connectAdvanced.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ export default function connectAdvanced(
474474
const Connect = pure ? React.memo(ConnectFunction) : ConnectFunction
475475

476476
Connect.WrappedComponent = WrappedComponent
477-
Connect.displayName = displayName
477+
Connect.displayName = ConnectFunction.displayName = displayName
478478

479479
if (forwardRef) {
480480
const forwarded = React.forwardRef(function forwardConnectRef(

0 commit comments

Comments
 (0)
Please sign in to comment.