Skip to content

Commit

Permalink
Don't use Spread in DevTools Injection (#18277)
Browse files Browse the repository at this point in the history
  • Loading branch information
sebmarkbage committed Mar 11, 2020
1 parent a463fef commit b5c6dd2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/react-reconciler/src/ReactFiberReconciler.js
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,10 @@ export function injectIntoDevTools(devToolsConfig: DevToolsConfig): boolean {
const {ReactCurrentDispatcher} = ReactSharedInternals;

return injectInternals({
...devToolsConfig,
bundleType: devToolsConfig.bundleType,
version: devToolsConfig.version,
rendererPackageName: devToolsConfig.rendererPackageName,
getInspectorDataForViewTag: devToolsConfig.getInspectorDataForViewTag,
overrideHookState,
overrideProps,
setSuspenseHandler,
Expand Down

0 comments on commit b5c6dd2

Please sign in to comment.