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

fix(geo): remove lifecycle compat #2644

Merged
merged 1 commit into from
Jul 9, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
@@ -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);