File tree Expand file tree Collapse file tree 1 file changed +5
-10
lines changed
dash/dash-renderer/src/wrapper Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,8 @@ import {
28
28
createElement ,
29
29
getComponentLayout ,
30
30
isDryComponent ,
31
- checkRenderTypeProp
31
+ checkRenderTypeProp ,
32
+ stringifyPath
32
33
} from './wrapping' ;
33
34
import Registry from '../registry' ;
34
35
import isSimpleComponent from '../isSimpleComponent' ;
@@ -158,18 +159,13 @@ function DashWrapper({
158
159
} ;
159
160
160
161
const createContainer = useCallback (
161
- ( container , containerPath , _childNewRender , key = undefined ) => {
162
+ ( container , containerPath , _childNewRender ) => {
162
163
if ( isSimpleComponent ( renderComponent ) ) {
163
164
return renderComponent ;
164
165
}
165
166
return (
166
167
< DashWrapper
167
- key = {
168
- ( container &&
169
- container . props &&
170
- stringifyId ( container . props . id ) ) ||
171
- key
172
- }
168
+ key = { stringifyPath ( containerPath ) }
173
169
_dashprivate_error = { _dashprivate_error }
174
170
componentPath = { containerPath }
175
171
_passedComponent = { container }
@@ -192,8 +188,7 @@ function DashWrapper({
192
188
...childrenPath ,
193
189
i
194
190
] ) ,
195
- _childNewRender ,
196
- i
191
+ _childNewRender
197
192
) ;
198
193
}
199
194
return n ;
You can’t perform that action at this time.
0 commit comments