We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8605088 commit dec00a8Copy full SHA for dec00a8
src/components/connectAdvanced.js
@@ -160,8 +160,8 @@ export default function connectAdvanced(
160
// Distinguish between actual "data" props that were passed to the wrapper component,
161
// and values needed to control behavior (forwarded refs, alternate context instances).
162
// To maintain the wrapperProps object reference, memoize this destructuring.
163
- const { context, forwardedRef, ...wrapperProps } = props
164
- return [context, forwardedRef, wrapperProps]
+ const { forwardedRef, ...wrapperProps } = props
+ return [props.context, forwardedRef, wrapperProps]
165
}, [props])
166
167
const ContextToUse = useMemo(() => {
0 commit comments