File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -272,7 +272,11 @@ export default function connectAdvanced(
272
272
const usePureOnlyMemo = pure ? useMemo : callback => callback ( )
273
273
274
274
function ConnectFunction ( props ) {
275
- const [ propsContext , reactReduxForwardedRef , wrapperProps ] = useMemo ( ( ) => {
275
+ const [
276
+ propsContext ,
277
+ reactReduxForwardedRef ,
278
+ wrapperProps
279
+ ] = useMemo ( ( ) => {
276
280
// Distinguish between actual "data" props that were passed to the wrapper component,
277
281
// and values needed to control behavior (forwarded refs, alternate context instances).
278
282
// To maintain the wrapperProps object reference, memoize this destructuring.
@@ -437,7 +441,12 @@ export default function connectAdvanced(
437
441
// Now that all that's done, we can finally try to actually render the child component.
438
442
// We memoize the elements for the rendered child component as an optimization.
439
443
const renderedWrappedComponent = useMemo (
440
- ( ) => < WrappedComponent { ...actualChildProps } ref = { reactReduxForwardedRef } /> ,
444
+ ( ) => (
445
+ < WrappedComponent
446
+ { ...actualChildProps }
447
+ ref = { reactReduxForwardedRef }
448
+ />
449
+ ) ,
441
450
[ reactReduxForwardedRef , WrappedComponent , actualChildProps ]
442
451
)
443
452
You can’t perform that action at this time.
0 commit comments