Skip to content
This repository has been archived by the owner on Jun 10, 2019. It is now read-only.

Upgrading to React 16 - Implement Error Boundaries and Polyfills #532

Closed
sethbergman opened this issue Oct 1, 2017 · 19 comments
Closed

Comments

@sethbergman
Copy link
Member

Feature Update

#510 Needs additional, very simple fixes

React version 16 is fresh out of the master branch and the changelog notes some minor breaking changes.

Why is this feature being added?

Version 16 adds some great new functionality, but needs some love to get it upgraded safely.


Bug Report


Implement Error Boundaries

https://reactjs.org/blog/2017/07/26/error-handling-in-react-16.html#introducing-error-boundaries

@sethbergman
Copy link
Member Author

These changes shouldn't take more than an hour, with the exception of maybe the Error Boundaries. I'd need to understand the scope of their necessity, but if all is a go then by all means. Just at minimum do the requestAnimationFrame polyfill.

@jenniferabowd
Copy link

@sethbergman I am working on upgrading this to React 16.

@kylemh
Copy link
Member

kylemh commented Oct 2, 2017

@jenniferkaplannyc @sethbergman is mid cherrypick on this issue - apologies.

We'd love to have you join our Slack team. Somebody of your calibre could be very useful on many of our issues.

@kylemh
Copy link
Member

kylemh commented Oct 2, 2017

We need access to our CI/build process to debug the issues arising from implementing React 16 in production.

@sethbergman
Copy link
Member Author

@jenniferabowd
Copy link

I was having this same problem when I tried to upgrade your site, but then I saw the issue was closed so I deleted my files. However, were there any depreciation warnings in the previous version of React? If so, lets fix those to see if that resolves the issue when upgrading.

@sethbergman
Copy link
Member Author

We're on 15.4, not 15.6 as it states in the article. There would need to be an upgrade to 15.6 first I believe.

@sethbergman
Copy link
Member Author

But yes there were many peerDependencies that were giving warnings.

@sethbergman
Copy link
Member Author

@jenniferabowd
Copy link

jenniferabowd commented Oct 2, 2017 via email

@kylemh
Copy link
Member

kylemh commented Oct 2, 2017

Perhaps a good next step would be to move to 15.6 to have more visibility on deprecation warnings.

@jenniferabowd
Copy link

jenniferabowd commented Oct 2, 2017 via email

@sethbergman
Copy link
Member Author

I agree wholeheartedly!

@kylemh
Copy link
Member

kylemh commented Oct 2, 2017

@jenniferkaplannyc or @sethbergman feel free to grab #556

@sethbergman
Copy link
Member Author

I'm about to take a nap. 👍

@sethbergman sethbergman removed their assignment Oct 3, 2017
@AryanJ-NYC
Copy link
Contributor

@sethbergman @kylemh Any hints on how to locally test if the shims and polyfills work correctly?

@kylemh
Copy link
Member

kylemh commented Oct 6, 2017

I'm not sure why were not receiving dev warnings for dependencies, but I'm fairly certain that Storybook, React-Modal, and another few components have not yet made the move to React 16, thereby blocking this issue.

@jjhampton
Copy link
Member

@kylemh Does this still need to be open? package.json shows that we're already on React v16 .

@kylemh
Copy link
Member

kylemh commented May 27, 2018

@jjhampton nope

@kylemh kylemh closed this as completed May 27, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants