Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions web/client/components/TOC/enhancers/tocItemsSettings.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ export const settingsState = compose(
* - onSave: triggers onHideSettings
* Lifecycle:
* - UNSAFE_componentWillMount: set original and initial settings of current node
* - componentWillReceiveProps: in case of missing description of node, it sends a get capabilities requiest to retrieve data of layer
* - componentWillUpdate: check if current settings are not expanded and next are expanded to restore initial and original settings of component
* - UNSAFE_componentWillReceiveProps: in case of missing description of node, it sends a get capabilities requiest to retrieve data of layer
* - UNSAFE_componentWillUpdate: check if current settings are not expanded and next are expanded to restore initial and original settings of component
* @memberof enhancers.settingsLifecycle
* @class
*/
Expand All @@ -48,7 +48,7 @@ export const settingsLifecycle = compose(
}
}),
lifecycle({
componentWillReceiveProps(newProps) {
UNSAFE_componentWillReceiveProps(newProps) {
// an empty description does not trigger the single layer getCapabilites,
// it does only for missing description
const {
Expand All @@ -60,7 +60,7 @@ export const settingsLifecycle = compose(
onRetrieveLayerData(newProps.element);
}
},
componentWillUpdate(newProps) {
UNSAFE_componentWillUpdate(newProps) {
const {
initialActiveTab = 'general',
settings = {},
Expand Down
2 changes: 1 addition & 1 deletion web/client/components/data/download/DownloadOptions.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ class DownloadOptions extends React.Component {
this.props.formatOptionsFetch(this.props.layer);
};

componentWillReceiveProps = (newProps) => {
UNSAFE_componentWillReceiveProps = (newProps) => {
if ( !isEqual( this.props.formats, newProps.formats)) {
const format = get(newProps, "downloadOptions.selectedFormat") || get(head(newProps.formats), "name");
newProps.onChange("selectedFormat", format);
Expand Down
4 changes: 2 additions & 2 deletions web/client/components/data/identify/enhancers/identify.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export const identifyHandlers = withHandlers({
/**
* Basic identify lifecycle used in Identify plugin with IdentifyContainer component
* - componentDidMount: show cursor on map as pointer if enabled props is true
* - componentWillReceiveProps:
* - UNSAFE_componentWillReceiveProps:
* - changes pointer enable true/false - TODO: move it in an epic
* - set index to 0 to when responses are changed to avoid empty view if index is greater than current responses length
* @memberof components.data.identify.enhancers.identify
Expand Down Expand Up @@ -120,7 +120,7 @@ export const identifyLifecycle = compose(
hideMarker();
purgeResults();
},
componentWillReceiveProps(newProps) {
UNSAFE_componentWillReceiveProps(newProps) {
const {
hideMarker = () => {},
purgeResults = () => {},
Expand Down
2 changes: 1 addition & 1 deletion web/client/components/map/enhancers/mapType.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function mapType(Component) {
this._isMounted = true;
}

componentWillUpdate(newProps) {
UNSAFE_componentWillUpdate(newProps) {
if (newProps.mapType !== this.props.mapType) {
this.setPlugins(newProps);
}
Expand Down
2 changes: 1 addition & 1 deletion web/client/components/misc/enhancers/stickySupport.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export default () => WrappedComponent =>
this.update(this.props.scrollContainerSelector);
}

componentWillReceiveProps(newProps) {
UNSAFE_componentWillReceiveProps(newProps) {
if (this._stickybits
&& (newProps.viewWidth !== this.props.viewWidth
|| newProps.viewHeight !== this.props.viewHeight)) {
Expand Down
4 changes: 2 additions & 2 deletions web/client/libs/numeric-input/NumericInput.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ class NumericInput extends Component {
* 2. Then trim it.
* 3. Then parse it to number (delegating to this.props.parse if any)
*/
componentWillReceiveProps(props) {
UNSAFE_componentWillReceiveProps(props) {
this._isStrict = !!props.strict;
let nextState = this._propsToState(props);
if (Object.keys(nextState).length) {
Expand All @@ -206,7 +206,7 @@ class NumericInput extends Component {
/**
* Save the input selection right before rendering
*/
componentWillUpdate() {
UNSAFE_componentWillUpdate() {
this.saveSelection();
}

Expand Down
Loading