Skip to content

Commit

Permalink
Merge pull request #3 from xogroup/chore/update-functions-to-unsafe
Browse files Browse the repository at this point in the history
Update functions to Unsafe functions
  • Loading branch information
cameronaziz-tkww authored Jul 17, 2020
2 parents 12835c4 + 7b51220 commit 0a12004
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-slick",
"version": "0.23.2-1",
"version": "0.23.3",
"description": " React port of slick carousel",
"main": "./lib",
"files": [
Expand Down
4 changes: 2 additions & 2 deletions src/inner-slider.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export class InnerSlider extends React.Component {
this.list.style.height = getHeight(elem) + "px";
}
};
componentWillMount = () => {
UNSAFE_componentWillMount = () => {
this.ssrInit();
this.props.onInit && this.props.onInit();
if (this.props.lazyLoad) {
Expand Down Expand Up @@ -127,7 +127,7 @@ export class InnerSlider extends React.Component {
clearInterval(this.autoplayTimer);
}
};
componentWillReceiveProps = nextProps => {
UNSAFE_componentWillReceiveProps = nextProps => {
let spec = {
listRef: this.list,
trackRef: this.track,
Expand Down
2 changes: 1 addition & 1 deletion src/slider.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default class Slider extends React.Component {
}

// handles responsive breakpoints
componentWillMount() {
UNSAFE_componentWillMount() {
// performance monitoring
//if (process.env.NODE_ENV !== 'production') {
//const { whyDidYouUpdate } = require('why-did-you-update')
Expand Down

0 comments on commit 0a12004

Please sign in to comment.