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

[core] upgrade/replace react-router #672

Closed
perpetualgrimace opened this issue Aug 29, 2019 · 4 comments
Closed

[core] upgrade/replace react-router #672

perpetualgrimace opened this issue Aug 29, 2019 · 4 comments

Comments

@perpetualgrimace
Copy link
Contributor

Since recent canon updates I've been getting this warning after running the build:

69% building 2240/2270 modules 30 activeWarning: componentWillMount has been renamed, and is not recommended for use. See https://fb.me/react-async-component-lifecycle-hooks for details.

* Move code from componentWillMount to componentDidMount (preferred in most cases) or the constructor.

Please update the following components: SideEffect(NullComponent)
Warning: componentWillMount has been renamed, and is not recommended for use. See https://fb.me/react-async-component-lifecycle-hooks for details.

* Move code from componentWillMount to componentDidMount (preferred in most cases) or the constructor.

Please update the following components: RouterContext
@davelandry davelandry changed the title SideEffect & RouterContext components introduce errors because react is never not renaming lifecycle methods upgrade/replace react-router Aug 29, 2019
@davelandry
Copy link
Member

Upgrading react-router would resolve this, but that would require a major canon release and all of our sites to adopt the newest (very different) react-router syntax.

My gut tells me that we should roll our own router, and try to preserve as much of the current syntax as possible in order to not disrupt the sites that use canon.

@davelandry davelandry changed the title upgrade/replace react-router [core] upgrade/replace react-router Aug 30, 2019
@jhmullen
Copy link
Collaborator

Updating react-router will be part of 1.0/canon-reports. Closing this

@davelandry
Copy link
Member

@jhmullen didn't we say that since this is a core issue, it isn't part of canon-reports? is this issue getting tracked anywhere else?

@jhmullen
Copy link
Collaborator

jhmullen commented Dec 17, 2021

Yes, thanks for the correction. Tracked now at #1325

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants