react-break
Advanced tools
Comparing version
@@ -83,3 +83,5 @@ 'use strict'; | ||
return _ret = (_temp = (_this = (0, _possibleConstructorReturn3.default)(this, (_ref = Break.__proto__ || (0, _getPrototypeOf2.default)(Break)).call.apply(_ref, [this].concat(args))), _this), _this.state = { layout: (0, _breakjs2.default)(_this.props.breakpoints) }, _this.onLayoutChange = function () { | ||
_this.forceUpdate(); | ||
if (_this.mounted) { | ||
_this.forceUpdate(); | ||
} | ||
}, _this.mounted = false, _temp), (0, _possibleConstructorReturn3.default)(_this, _ret); | ||
@@ -86,0 +88,0 @@ } |
{ | ||
"name": "react-break", | ||
"version": "1.3.1", | ||
"version": "1.3.2", | ||
"description": "Responsive breakpoints in React.", | ||
@@ -5,0 +5,0 @@ "main": "./lib/react-break.js", |
@@ -52,3 +52,5 @@ import React, { PureComponent } from 'react'; | ||
onLayoutChange = () => { | ||
this.forceUpdate(); | ||
if (this.mounted) { | ||
this.forceUpdate(); | ||
} | ||
} | ||
@@ -55,0 +57,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
648002
0.01%2045
0.2%