|
1 | 1 | /*eslint-disable react/prop-types*/
|
2 | 2 |
|
3 |
| -import React, { |
4 |
| - Component, |
5 |
| - MouseEvent, |
6 |
| - useEffect, |
7 |
| - ComponentClass, |
8 |
| - ComponentType, |
9 |
| -} from 'react' |
| 3 | +import React, { Component, MouseEvent, ComponentType } from 'react' |
10 | 4 | import createClass from 'create-react-class'
|
11 | 5 | import PropTypes from 'prop-types'
|
12 | 6 | import ReactDOM from 'react-dom'
|
@@ -2350,6 +2344,9 @@ describe('React', () => {
|
2350 | 2344 | rtl.render(
|
2351 | 2345 | <ProviderMock context={context} store={store1}>
|
2352 | 2346 | <ProviderMock store={store2}>
|
| 2347 | + {/*TODO: Since the connect type does not support this advanced usage, |
| 2348 | + we will ignore it for the time being and resolve it after merging connect and connectAdvanced |
| 2349 | + https://github.com/reduxjs/react-redux/pull/1781 */} |
2353 | 2350 | {/*// @ts-ignore */}
|
2354 | 2351 | <Decorated context={context} />
|
2355 | 2352 | </ProviderMock>
|
@@ -2382,6 +2379,9 @@ describe('React', () => {
|
2382 | 2379 |
|
2383 | 2380 | rtl.render(
|
2384 | 2381 | <ProviderMock store={store}>
|
| 2382 | + {/*TODO: Since the connect type does not support this advanced usage, |
| 2383 | + we will ignore it for the time being and resolve it after merging connect and connectAdvanced |
| 2384 | + https://github.com/reduxjs/react-redux/pull/1781 */} |
2385 | 2385 | {/*// @ts-ignore */}
|
2386 | 2386 | <Decorated context={nonContext} />
|
2387 | 2387 | </ProviderMock>
|
@@ -2526,6 +2526,9 @@ describe('React', () => {
|
2526 | 2526 | const tester = rtl.render(
|
2527 | 2527 | <ProviderMock store={store1}>
|
2528 | 2528 | <ConnectedComp1>
|
| 2529 | + {/*TODO: Since the connect type does not support this advanced usage, |
| 2530 | + we will ignore it for the time being and resolve it after merging connect and connectAdvanced |
| 2531 | + https://github.com/reduxjs/react-redux/pull/1781 */} |
2529 | 2532 | {/*// @ts-ignore */}
|
2530 | 2533 | <ConnectedComp2 store={store2} />
|
2531 | 2534 | </ConnectedComp1>
|
|
0 commit comments