Skip to content

Commit

Permalink
add comments reduxjs#2
Browse files Browse the repository at this point in the history
  • Loading branch information
Slartbartfast1 committed Jun 28, 2019
1 parent 976c59a commit 5c3dda4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/connectAdvanced.js
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down

0 comments on commit 5c3dda4

Please sign in to comment.