Skip to content

Commit 32630ba

Browse files
committed
Formatting changes
1 parent 4141ce7 commit 32630ba

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

src/components/connectAdvanced.js

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,11 @@ export default function connectAdvanced(
272272
const usePureOnlyMemo = pure ? useMemo : callback => callback()
273273

274274
function ConnectFunction(props) {
275-
const [propsContext, reactReduxForwardedRef, wrapperProps] = useMemo(() => {
275+
const [
276+
propsContext,
277+
reactReduxForwardedRef,
278+
wrapperProps
279+
] = useMemo(() => {
276280
// Distinguish between actual "data" props that were passed to the wrapper component,
277281
// and values needed to control behavior (forwarded refs, alternate context instances).
278282
// To maintain the wrapperProps object reference, memoize this destructuring.
@@ -437,7 +441,12 @@ export default function connectAdvanced(
437441
// Now that all that's done, we can finally try to actually render the child component.
438442
// We memoize the elements for the rendered child component as an optimization.
439443
const renderedWrappedComponent = useMemo(
440-
() => <WrappedComponent {...actualChildProps} ref={reactReduxForwardedRef} />,
444+
() => (
445+
<WrappedComponent
446+
{...actualChildProps}
447+
ref={reactReduxForwardedRef}
448+
/>
449+
),
441450
[reactReduxForwardedRef, WrappedComponent, actualChildProps]
442451
)
443452

0 commit comments

Comments
 (0)