Skip to content

Commit

Permalink
fix:displayName error displayed in development tool (#1711)
Browse files Browse the repository at this point in the history
Co-authored-by: bh <abel_sun@yunquna.com>
  • Loading branch information
myNameIsDu and bh authored Apr 10, 2021
1 parent 5b4b576 commit 95e3287
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/connectAdvanced.js
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ export default function connectAdvanced(
const Connect = pure ? React.memo(ConnectFunction) : ConnectFunction

Connect.WrappedComponent = WrappedComponent
Connect.displayName = displayName
Connect.displayName = ConnectFunction.displayName = displayName

if (forwardRef) {
const forwarded = React.forwardRef(function forwardConnectRef(
Expand Down

0 comments on commit 95e3287

Please sign in to comment.