Skip to content

Commit

Permalink
Remove tuple label syntax that fails on TS 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
markerikson committed Jul 9, 2021
1 parent 0d5ded6 commit 1c34305
Showing 1 changed file with 4 additions and 16 deletions.
20 changes: 4 additions & 16 deletions src/components/connectAdvanced.tsx
@@ -1,23 +1,11 @@
import hoistStatics from 'hoist-non-react-statics'
import React, {
useContext,
useMemo,
useRef,
useReducer,
useLayoutEffect,
} from 'react'
import React, { useContext, useMemo, useRef, useReducer } from 'react'
import { isValidElementType, isContextConsumer } from 'react-is'
import type { Store, AnyAction } from 'redux'
import type { Store } from 'redux'
import type { SelectorFactory } from '../connect/selectorFactory'
import { createSubscription, Subscription } from '../utils/Subscription'
import { useIsomorphicLayoutEffect } from '../utils/useIsomorphicLayoutEffect'
import type {
DispatchProp,
Matching,
GetProps,
AdvancedComponentDecorator,
ConnectedComponent,
} from '../types'
import type { AdvancedComponentDecorator, ConnectedComponent } from '../types'

import {
ReactReduxContext,
Expand All @@ -38,7 +26,7 @@ const stringifyComponent = (Comp: unknown) => {
}

function storeStateUpdatesReducer(
state: [payload: unknown, counter: number],
state: [unknown, number],
action: { payload: unknown }
) {
const [, updateCount] = state
Expand Down

0 comments on commit 1c34305

Please sign in to comment.