React: Please publish new alpha with v16.7 bugfix and Hooks

Created on 21 Dec 2018  Â·  10Comments  Â·  Source: facebook/react

Do you want to request a feature or report a bug?
¯_(ツ)_/¯

What is the expected behavior?
The blog post we pretty clear about Hooks not being available for a while, but for those of us who have already begun preparing for the hooks release, it would be great to have an updated alpha with the latest bugfixes included. Thank you!

Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?
v16.7.0-alpha.2 hooks release is not up to date with the latest version v16.7.

Hooks Release

Most helpful comment

16.8.0-alpha.0 should be out. Don't forget to update both react and react-dom.

All 10 comments

It's also misleading that 16.7.0 has been released which looks like a finalized version of 16.7.0-alpha.x, but has features removed (i.e. hooks). I understand the reasoning behind why 16.7.0 doesn't have hooks, but it might mitigate some confusion to publish a new 16.8.0-alpha.0 which picks up where the previous alphas left off (and hopefully incorporates bugfixes from 16.7 of course).

This seems reasonable, but keep in mind that we're heading into the holidays here so please be patient as it may take some time before anyone is available to address this. Thanks!

What makes things worse is that npm update updates 16.7.0-alpha.x to 16.7.0.

@EvgenyOrekhov In that case you might want to specifically depend on 16.7.0-alpha.2 (or =16.7.0-alpha.2) instead of ^16.7.0-alpha.2 in your package.json.

Yep, can confirm that this breaks existing dependencies on hooks due to semver range taking the non alpha. Doing a yarn add react@next (without -E) adds ^16.7.0-alpha.2 to dependencies, which ends up resolving to 16.7.0 now. Simply publishing the same exact thing that's in 16.7.0-alpha.2 under a 16.8.0-alpha.0 version would save a lot of headaches. Could follow up with a patch for the other issue in a patch release to it.

Any updates on this? Is there a plan to release a new alpha with Hooks support?

When forcing your dependency to 16.7.0-alpha.2 don't forget to update react-dom if you also depend on it otherwise you will get error: dispatcher._useState_ is not a function

"react": "16.7.0-alpha.2",
"react-dom": "16.7.0-alpha.2",

16.8.0-alpha.0 should be out. Don't forget to update both react and react-dom.

Do react-is and react-test-renderer also need matching versions?

Generally every update needs matching versions.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

varghesep picture varghesep  Â·  3Comments

zpao picture zpao  Â·  3Comments

kocokolo picture kocokolo  Â·  3Comments

jimfb picture jimfb  Â·  3Comments

zpao picture zpao  Â·  3Comments