Router: Release new version compatible with React 17

Created on 24 Oct 2020  路  7Comments  路  Source: reach/router

React 17 was just released. There are no breaking changes, but if I try to use it with this package, I get warnings about missing peer-dependencies (this package depends on [email protected]).

Can you release a new version making this package compatible with React 17? @blainekasten

Most helpful comment

I'm surprised that this still has not been done at this point in time. For context, anyone using Gatsby, witch has reach router under the hood, cannot use this router at all with React 17. So...?

All 7 comments

I'll gladly create a MR if you're willing to merge it and release a new version :)

ping @ryanflorence @blainekasten

@alexandernst Yes please, put up a PR and i'll get a version released!

@blainekasten Done! https://github.com/reach/router/pull/432

I also changed "create-react-context" to "^0.3.0" as I'll try to push that library to React 17 as well.

@sfcgeorge Wrote a wonderful synopsis about this issue in PR (#432) which I feel should be captured here.

I'm surprised that this still has not been done at this point in time. For context, anyone using Gatsby, witch has reach router under the hood, cannot use this router at all with React 17. So...?

@david-j-davis I hear you. Lots of Gatsby and Storybook users visit this Issue and the related PR's.

For GastbyJS 3.0 users, they can look at this work-around for their Jest tests: https://www.gatsbyjs.com/docs/reference/release-notes/migrating-from-v2-to-v3/#reach-router

Was this page helpful?
0 / 5 - 0 ratings

Related issues

micabe picture micabe  路  4Comments

alexluong picture alexluong  路  3Comments

alexandernanberg picture alexandernanberg  路  3Comments

benwiley4000 picture benwiley4000  路  4Comments

artoodeeto picture artoodeeto  路  4Comments