File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
dash/dash-renderer/src/wrapper Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -91,10 +91,10 @@ function DashWrapper({
91
91
} else {
92
92
newRender . current = false ;
93
93
}
94
- renderedPath . current = componentPath
94
+ renderedPath . current = componentPath ;
95
95
} , [ _newRender ] ) ;
96
96
97
- const setProps = useCallback ( ( newProps : UpdatePropsPayload ) => {
97
+ const setProps = ( newProps : UpdatePropsPayload ) => {
98
98
const { id} = renderComponentProps ;
99
99
const { _dash_error, ...restProps } = newProps ;
100
100
@@ -103,7 +103,10 @@ function DashWrapper({
103
103
dispatch ( ( dispatch , getState ) => {
104
104
const currentState = getState ( ) ;
105
105
const { graphs} = currentState ;
106
- const oldLayout = getComponentLayout ( renderedPath . current , currentState ) ;
106
+ const oldLayout = getComponentLayout (
107
+ renderedPath . current ,
108
+ currentState
109
+ ) ;
107
110
if ( ! oldLayout ) return ;
108
111
const { props : oldProps } = oldLayout ;
109
112
if ( ! oldProps ) return ;
@@ -152,7 +155,7 @@ function DashWrapper({
152
155
) ;
153
156
} ) ;
154
157
} ) ;
155
- } , [ componentPath ] ) ;
158
+ } ;
156
159
157
160
const createContainer = useCallback (
158
161
( container , containerPath , _childNewRender , key = undefined ) => {
You can’t perform that action at this time.
0 commit comments