Skip to content
This repository has been archived by the owner on Dec 30, 2022. It is now read-only.

Commit

Permalink
fix(geo): remove lifecycle compat (#2644)
Browse files Browse the repository at this point in the history
This is no longer necessary, since we now require React 16.3 as a peer dependency (#2626)
  • Loading branch information
Haroenv committed Jul 9, 2019
1 parent 6ef1585 commit 2b2b898
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -146,7 +146,7 @@
},
{
"path": "packages/react-instantsearch-dom-maps/dist/umd/ReactInstantSearchDOMMaps.min.js",
"maxSize": "6.75 kB"
"maxSize": "6 kB"
}
]
}
1 change: 0 additions & 1 deletion packages/react-instantsearch-dom-maps/package.json
Expand Up @@ -43,7 +43,6 @@
"dependencies": {
"@babel/runtime": "^7.1.2",
"prop-types": "^15.5.10",
"react-lifecycles-compat": "^3.0.4",
"scriptjs": "^2.5.8"
},
"peerDependencies": {
Expand Down
3 changes: 0 additions & 3 deletions packages/react-instantsearch-dom-maps/src/Connector.js
@@ -1,5 +1,4 @@
import { Component } from 'react';
import { polyfill } from 'react-lifecycles-compat';
import PropTypes from 'prop-types';
import { connectGeoSearch } from 'react-instantsearch-dom';
import { LatLngPropType, BoundingBoxPropType } from './propTypes';
Expand Down Expand Up @@ -107,6 +106,4 @@ export class Connector extends Component {
}
}

polyfill(Connector);

export default connectGeoSearch(Connector);

0 comments on commit 2b2b898

Please sign in to comment.