@@ -70,7 +70,7 @@ type EffectFunc = (...args: any[]) => void | ReturnType<React.EffectCallback>
7070function useIsomorphicLayoutEffectWithArgs (
7171 effectFunc : EffectFunc ,
7272 effectArgs : any [ ] ,
73- dependencies ?: React . DependencyList
73+ dependencies ?: React . DependencyList ,
7474) {
7575 useIsomorphicLayoutEffect ( ( ) => effectFunc ( ...effectArgs ) , dependencies )
7676}
@@ -83,7 +83,7 @@ function captureWrapperProps(
8383 wrapperProps : unknown ,
8484 // actualChildProps: unknown,
8585 childPropsFromStoreUpdate : React . MutableRefObject < unknown > ,
86- notifyNestedSubs : ( ) => void
86+ notifyNestedSubs : ( ) => void ,
8787) {
8888 // We want to capture the wrapper props and child props we used for later comparisons
8989 lastWrapperProps . current = wrapperProps
@@ -110,7 +110,7 @@ function subscribeUpdates(
110110 childPropsFromStoreUpdate : React . MutableRefObject < unknown > ,
111111 notifyNestedSubs : ( ) => void ,
112112 // forceComponentUpdateDispatch: React.Dispatch<any>,
113- additionalSubscribeListener : ( ) => void
113+ additionalSubscribeListener : ( ) => void ,
114114) {
115115 // If we're not subscribed to the store, nothing to do here
116116 if ( ! shouldHandleStateChanges ) return ( ) => { }
@@ -136,7 +136,7 @@ function subscribeUpdates(
136136 // to determine what the child props should be
137137 newChildProps = childPropsSelector (
138138 latestStoreState ,
139- lastWrapperProps . current
139+ lastWrapperProps . current ,
140140 )
141141 } catch ( e ) {
142142 error = e
@@ -466,13 +466,13 @@ function connect<
466466
467467 // the context consumer to use
468468 context = ReactReduxContext ,
469- } : ConnectOptions < unknown , unknown , unknown , unknown > = { }
469+ } : ConnectOptions < unknown , unknown , unknown , unknown > = { } ,
470470) : unknown {
471471 if ( process . env . NODE_ENV !== 'production' ) {
472472 if ( pure !== undefined && ! hasWarnedAboutDeprecatedPureOption ) {
473473 hasWarnedAboutDeprecatedPureOption = true
474474 warning (
475- 'The `pure` option has been removed. `connect` is now always a "pure/memoized" component'
475+ 'The `pure` option has been removed. `connect` is now always a "pure/memoized" component' ,
476476 )
477477 }
478478 }
@@ -486,7 +486,7 @@ function connect<
486486 const shouldHandleStateChanges = Boolean ( mapStateToProps )
487487
488488 const wrapWithConnect = < TProps , > (
489- WrappedComponent : ComponentType < TProps >
489+ WrappedComponent : ComponentType < TProps > ,
490490 ) => {
491491 type WrappedComponentProps = TProps &
492492 ConnectPropsMaybeWithoutContext < TProps >
@@ -496,8 +496,8 @@ function connect<
496496 if ( ! isValid )
497497 throw new Error (
498498 `You must pass a component to the function returned by connect. Instead received ${ stringifyComponent (
499- WrappedComponent
500- ) } `
499+ WrappedComponent ,
500+ ) } `,
501501 )
502502 }
503503
@@ -529,7 +529,7 @@ function connect<
529529 }
530530
531531 function ConnectFunction < TOwnProps > (
532- props : InternalConnectProps & TOwnProps
532+ props : InternalConnectProps & TOwnProps ,
533533 ) {
534534 const [ propsContext , reactReduxForwardedRef , wrapperProps ] =
535535 React . useMemo ( ( ) => {
@@ -548,11 +548,11 @@ function connect<
548548 if ( process . env . NODE_ENV !== 'production' ) {
549549 const isValid = /*#__PURE__*/ isContextConsumer (
550550 // @ts -ignore
551- < propsContext . Consumer />
551+ < propsContext . Consumer /> ,
552552 )
553553 if ( ! isValid ) {
554554 throw new Error (
555- 'You must pass a valid React context consumer as `props.context`'
555+ 'You must pass a valid React context consumer as `props.context`' ,
556556 )
557557 }
558558 ResultContext = propsContext
@@ -583,7 +583,7 @@ function connect<
583583 `Could not find "store" in the context of ` +
584584 `"${ displayName } ". Either wrap the root component in a <Provider>, ` +
585585 `or pass a custom React context provider to <Provider> and the corresponding ` +
586- `React context consumer to ${ displayName } in connect options.`
586+ `React context consumer to ${ displayName } in connect options.` ,
587587 )
588588 }
589589
@@ -609,7 +609,7 @@ function connect<
609609 // connected to the store via props shouldn't use subscription from context, or vice versa.
610610 const subscription = createSubscription (
611611 store ,
612- didStoreComeFromProps ? undefined : contextValue ! . subscription
612+ didStoreComeFromProps ? undefined : contextValue ! . subscription ,
613613 )
614614
615615 // `notifyNestedSubs` is duplicated to handle the case where the component is unmounted in
@@ -703,7 +703,7 @@ function connect<
703703 isMounted ,
704704 childPropsFromStoreUpdate ,
705705 notifyNestedSubs ,
706- reactListener
706+ reactListener ,
707707 )
708708 }
709709
@@ -730,10 +730,11 @@ function connect<
730730 actualChildPropsSelector ,
731731 getServerState
732732 ? ( ) => childPropsSelector ( getServerState ( ) , wrapperProps )
733- : actualChildPropsSelector
733+ : actualChildPropsSelector ,
734734 )
735735 } catch ( err ) {
736736 if ( latestSubscriptionCallbackError . current ) {
737+ // eslint-disable-next-line no-extra-semi
737738 ; (
738739 err as Error
739740 ) . message += `\nThe error may be correlated with this previous error:\n${ latestSubscriptionCallbackError . current . stack } \n\n`
@@ -797,7 +798,7 @@ function connect<
797798 if ( forwardRef ) {
798799 const _forwarded = React . forwardRef ( function forwardConnectRef (
799800 props ,
800- ref
801+ ref ,
801802 ) {
802803 // @ts -ignore
803804 return < Connect { ...props } reactReduxForwardedRef = { ref } />
0 commit comments