Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix error overlay 'Object.assign' issue in IE #3043

Closed

Conversation

tharakawj
Copy link
Contributor

Fixes #3034

Babel React JSX transform plugin is also use Object.assign for spread attributes. So React.createElement has been used here to avoid Object.assign

@@ -174,7 +174,9 @@ class StackFrame extends Component {
onClick={canOpenInEditor ? this.openInEditor : null}
style={canOpenInEditor ? codeAnchorStyle : null}
>
<CodeBlock {...codeBlockProps} />
{// Use JS instead of JSX spread attributes to avoid Object.assign
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's unfortunate. Are you sure this is really an issue? I had an impression that JSX puts extends helper in either case.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gaearon
Copy link
Contributor

gaearon commented Sep 1, 2017

I think this is too fragile. We'll mess it up again.

Let's just import polyfills first.

@tharakawj
Copy link
Contributor Author

I feel the same. I'll close this and create another with polyfills first.

@tharakawj tharakawj closed this Sep 1, 2017
@lock lock bot locked and limited conversation to collaborators Jan 20, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

create-react-app not working with IE11 in development mode
3 participants