From bd6df4c752d1b03a673fbee0bd969d29fd1f0cd3 Mon Sep 17 00:00:00 2001 From: Artem <1v@users.noreply.github.com> Date: Tue, 12 Mar 2024 10:21:21 +0300 Subject: [PATCH] Fix DanFessler#35 - console error caused by componentWillReceiveProps --- src/PanelGroup.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PanelGroup.js b/src/PanelGroup.js index cca27e6..d71c9b3 100644 --- a/src/PanelGroup.js +++ b/src/PanelGroup.js @@ -39,7 +39,7 @@ export default class PanelGroup extends React.Component { } // reload panel configuration if props update - componentWillReceiveProps(nextProps) { + UNSAFE_componentWillReceiveProps(nextProps) { const nextPanels = nextProps.panelWidths; // Only update from props if we're supplying the props in the first place