diff --git a/src/components/connectAdvanced.js b/src/components/connectAdvanced.js index ccc929a74..04bd246c7 100644 --- a/src/components/connectAdvanced.js +++ b/src/components/connectAdvanced.js @@ -160,6 +160,7 @@ export default function connectAdvanced( const usePureOnlyMemo = pure ? useMemo : callback => callback() function ConnectFunction(props) { + // 这里的useMemo const [propsContext, forwardedRef, wrapperProps] = useMemo(() => { // Distinguish between actual "data" props that were passed to the wrapper component, // and values needed to control behavior (forwarded refs, alternate context instances).