Skip to content

Commit 88c1308

Browse files
committed
fix memory issue in AsyncSuspenseHOC
1 parent 536dff4 commit 88c1308

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/webpack-plugin/lib/runtime/optionProcessorReact.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ export function getAsyncSuspense (commonProps) {
1414
if (commonProps.type === 'component') {
1515
result = memo(forwardRef(function (props, ref) {
1616
return createElement(AsyncSuspense,
17-
extend(commonProps, {
17+
extend({}, commonProps, {
1818
innerProps: Object.assign({}, props, { ref })
1919
})
2020
)
2121
}))
2222
} else {
2323
result = memo(function (props) {
2424
return createElement(AsyncSuspense,
25-
extend(commonProps, {
25+
extend({}, commonProps, {
2626
innerProps: props
2727
})
2828
)

0 commit comments

Comments
 (0)