Skip to content

Commit d81aa67

Browse files
committed
Revert "react-lifecycles-compat fixes, related to #951"
This reverts commit b0f0712.
1 parent b0f0712 commit d81aa67

File tree

3 files changed

+3
-9
lines changed

3 files changed

+3
-9
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
"global": "^4.3.0",
9898
"hoist-non-react-statics": "^2.5.0",
9999
"prop-types": "^15.6.1",
100-
"react-lifecycles-compat": "^3.0.4",
100+
"react-lifecycles-compat": "^3.0.2",
101101
"shallowequal": "^1.0.2"
102102
},
103103
"engines": {

src/AppContainer.dev.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react'
22
import PropTypes from 'prop-types'
3-
import defaultPolyfill, { polyfill } from 'react-lifecycles-compat'
3+
import { polyfill } from 'react-lifecycles-compat'
44
import logger from './logger'
55
import { get as getGeneration } from './global/generation'
66

@@ -63,8 +63,6 @@ AppContainer.propTypes = {
6363
errorReporter: PropTypes.oneOfType([PropTypes.node, PropTypes.func]),
6464
}
6565

66-
// trying first react-lifecycles-compat.polyfill, then trying react-lifecycles-compat, which could be .default
67-
const realPolyfill = polyfill || defaultPolyfill
68-
realPolyfill(AppContainer)
66+
polyfill(AppContainer)
6967

7068
export default AppContainer

yarn.lock

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4769,10 +4769,6 @@ react-lifecycles-compat@^3.0.2:
47694769
version "3.0.2"
47704770
resolved "https://registry.yarnpkg.com/react-lifecycles-compat/-/react-lifecycles-compat-3.0.2.tgz#7279047275bd727a912e25f734c0559527e84eff"
47714771

4772-
react-lifecycles-compat@^3.0.4:
4773-
version "3.0.4"
4774-
resolved "https://registry.yarnpkg.com/react-lifecycles-compat/-/react-lifecycles-compat-3.0.4.tgz#4f1a273afdfc8f3488a8c516bfda78f872352362"
4775-
47764772
react-mount@^0.1.3:
47774773
version "0.1.3"
47784774
resolved "https://registry.yarnpkg.com/react-mount/-/react-mount-0.1.3.tgz#2ea9cf95f1b4c49c6a4cefe1d91d8de709e3f631"

0 commit comments

Comments
 (0)