mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-07-27 08:30:02 +03:00
unsafe
This commit is contained in:
parent
fde0fdafd0
commit
9d92d3204a
|
@ -57,7 +57,7 @@
|
|||
"stylelint-processor-styled-components": "^0.0.4"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"react": "^0.14.9 || ^15.3.0"
|
||||
"react": "^16.3.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"base16": "^1.0.0",
|
||||
|
|
|
@ -11,7 +11,7 @@ export default class ContextMenu extends Component {
|
|||
this.updateItems(props.items);
|
||||
}
|
||||
|
||||
componentWillReceiveProps(nextProps) {
|
||||
UNSAFE_componentWillReceiveProps(nextProps) {
|
||||
if (
|
||||
nextProps.items !== this.props.items ||
|
||||
nextProps.visible !== this.props.visible
|
||||
|
|
|
@ -28,7 +28,7 @@ export default class Editor extends Component {
|
|||
}
|
||||
}
|
||||
|
||||
componentWillReceiveProps(nextProps) {
|
||||
UNSAFE_componentWillReceiveProps(nextProps) {
|
||||
if (nextProps.value !== this.cm.getValue()) {
|
||||
this.cm.setValue(nextProps.value);
|
||||
}
|
||||
|
|
|
@ -9,7 +9,7 @@ export default class Tabs extends Component {
|
|||
this.updateTabs(props);
|
||||
}
|
||||
|
||||
componentWillReceiveProps(nextProps) {
|
||||
UNSAFE_componentWillReceiveProps(nextProps) {
|
||||
if (nextProps.selected !== this.props.selected) {
|
||||
this.updateTabs(nextProps);
|
||||
}
|
||||
|
|
|
@ -21,7 +21,7 @@ export default class TabsHeader extends Component {
|
|||
this.hiddenTabsWidth = [];
|
||||
}
|
||||
|
||||
componentWillReceiveProps(nextProps) {
|
||||
UNSAFE_componentWillReceiveProps(nextProps) {
|
||||
if (
|
||||
nextProps.tabs !== this.props.tabs ||
|
||||
nextProps.selected !== this.props.selected ||
|
||||
|
|
|
@ -92,6 +92,6 @@
|
|||
"styled-components": "^2.4.1"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"react": "^16.0.0"
|
||||
"react": "^16.3.0"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -53,7 +53,7 @@ class Connection extends Component {
|
|||
return this.state !== nextState;
|
||||
}
|
||||
|
||||
componentWillReceiveProps(nextProps) {
|
||||
UNSAFE_componentWillReceiveProps(nextProps) {
|
||||
if (this.props.options !== nextProps.options) {
|
||||
this.setState({
|
||||
formData: { ...nextProps.options, type: nextProps.type }
|
||||
|
|
|
@ -38,7 +38,7 @@ class DevTools extends Component {
|
|||
}
|
||||
}
|
||||
|
||||
componentWillUpdate(nextProps) {
|
||||
UNSAFE_componentWillUpdate(nextProps) {
|
||||
if (nextProps.monitor !== this.props.monitor) this.getMonitor(nextProps);
|
||||
}
|
||||
|
||||
|
|
|
@ -62,7 +62,7 @@ class Dispatcher extends Component {
|
|||
changed: false
|
||||
};
|
||||
|
||||
componentWillReceiveProps(nextProps) {
|
||||
UNSAFE_componentWillReceiveProps(nextProps) {
|
||||
if (
|
||||
this.state.selected !== 'default' &&
|
||||
!nextProps.options.actionCreators
|
||||
|
|
|
@ -21,7 +21,7 @@ class ChartTab extends Component {
|
|||
this.createChart(this.props);
|
||||
}
|
||||
|
||||
componentWillReceiveProps(nextProps) {
|
||||
UNSAFE_componentWillReceiveProps(nextProps) {
|
||||
if (
|
||||
this.props.theme.scheme !== nextProps.theme.scheme ||
|
||||
nextProps.theme.light !== this.props.theme.light
|
||||
|
|
|
@ -12,7 +12,7 @@ export default class RawTab extends Component {
|
|||
return nextProps.data !== this.value;
|
||||
}
|
||||
|
||||
componentWillUpdate(nextProps) {
|
||||
UNSAFE_componentWillUpdate(nextProps) {
|
||||
this.stringifyData(nextProps);
|
||||
}
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@ class SubTabs extends Component {
|
|||
this.updateTabs(props);
|
||||
}
|
||||
|
||||
componentWillReceiveProps(nextProps) {
|
||||
UNSAFE_componentWillReceiveProps(nextProps) {
|
||||
if (nextProps.parentTab !== this.props.parentTab) {
|
||||
this.updateTabs(nextProps);
|
||||
}
|
||||
|
|
|
@ -7,7 +7,7 @@ import { CONNECT_REQUEST } from './constants/socketActionTypes';
|
|||
import App from './containers/App';
|
||||
|
||||
class Root extends Component {
|
||||
componentWillMount() {
|
||||
UNSAFE_componentWillMount() {
|
||||
configureStore((store, preloadedState) => {
|
||||
this.store = store;
|
||||
store.dispatch({
|
||||
|
|
|
@ -56,8 +56,8 @@
|
|||
"webpack-dev-server": "^3.11.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"react": ">=15.0.0",
|
||||
"react-dom": ">=15.0.0"
|
||||
"react": "^16.3.0",
|
||||
"react-dom": "^16.3.0"
|
||||
},
|
||||
"author": "Alexander <alexkuz@gmail.com> (http://kuzya.org/)",
|
||||
"contributors": [
|
||||
|
|
|
@ -17,7 +17,7 @@ function getTimestamps(actions, actionIds, actionId) {
|
|||
export default class ActionList extends Component {
|
||||
shouldComponentUpdate = shouldPureComponentUpdate;
|
||||
|
||||
componentWillReceiveProps(nextProps) {
|
||||
UNSAFE_componentWillReceiveProps(nextProps) {
|
||||
const node = this.node;
|
||||
if (!node) {
|
||||
this.scrollDown = true;
|
||||
|
|
|
@ -172,7 +172,7 @@ export default class DevtoolsInspector extends Component {
|
|||
}
|
||||
}
|
||||
|
||||
componentWillReceiveProps(nextProps) {
|
||||
UNSAFE_componentWillReceiveProps(nextProps) {
|
||||
let nextMonitorState = nextProps.monitorState;
|
||||
const monitorState = this.props.monitorState;
|
||||
|
||||
|
|
|
@ -43,7 +43,7 @@
|
|||
"rimraf": "^2.7.1"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"react": "^15.0.0 || ^16.0.0",
|
||||
"react": "^16.3.0",
|
||||
"redux-devtools": "^3.4.0"
|
||||
},
|
||||
"dependencies": {
|
||||
|
|
|
@ -114,7 +114,7 @@ export default class LogMonitor extends Component {
|
|||
}
|
||||
}
|
||||
|
||||
componentWillReceiveProps(nextProps) {
|
||||
UNSAFE_componentWillReceiveProps(nextProps) {
|
||||
const node = this.node;
|
||||
if (!node) {
|
||||
this.scrollDown = true;
|
||||
|
|
Loading…
Reference in New Issue
Block a user