From 95e328753cd799ad17382c8fb09d81fed38ea779 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BA=A6?= <53305259+myNameIsDu@users.noreply.github.com> Date: Sat, 10 Apr 2021 09:52:38 +0800 Subject: [PATCH] fix:displayName error displayed in development tool (#1711) Co-authored-by: bh --- src/components/connectAdvanced.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/connectAdvanced.js b/src/components/connectAdvanced.js index e2716ceb0..01f4a5553 100644 --- a/src/components/connectAdvanced.js +++ b/src/components/connectAdvanced.js @@ -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(