-
-
Notifications
You must be signed in to change notification settings - Fork 348
Conversation
c80b04f
to
4100632
Compare
|
I'm sure we don't need to rush and we'd better wait for a stable version. |
It's been alpha for several months and we are even using it in the production of two apps. It's highly likely it will be marked stable very soon. There is nothing wrong about it. And as I said, it's for dev only. |
Could you please replace the commit message and PR title with "Upgrade React to 16.9.0-alpha.0"? "Upgrade React" it is a little vague :( |
Besides, as you can see, tests are passing and we even got the useful warning there not present with 16.8. It's not related to |
I'm sorry, but I'll let myself disagree with that. I don't see any real reason to update yet for now. But that's my personal opinion of course. |
I would agree with you if we were forcing users to upgrade as well, but we are not. It's merely about improving tests capability and ensuring we haven't missed anything future relevant. |
Looks like 16.9 is really around the corner :) I am ok with waiting seeing it's so close, but it's kinda obvious it's indeed considered stable-ish already. |
4100632
to
52d5483
Compare
52d5483
to
c7b81ba
Compare
And it's out 🎉 That was a shorter period than expected :) Since tests are passing I am going to merge this. @vkrol Would you mind dropping those Also, those |
@FredyC I'm gonna look at it today or tomorrow. |
I am not sure we should get rid of this hack. In 16.9.0 the warning message about missing act does not contain the stack trace too :(
|
I see. That's a big let down. I remember stack trace being a problem in early versions of the act and expected it has improved. In that case, let's keep the hack and I will probably try to open up an issue in React about it. |
Actually, why do you consider output with that hack better? Trying it now and stack trace is like that... It just goes through that setup file to React and there is not a single clue about which test is a problem. On the contrary with an official warning which at least has Edit: Well, the difference is that without that hack the test actually passes, so that's weird. |
It's not a full stack trace. This is the full stack trace:
|
It's not weird because React do not throw about missing act, only warn. |
Oh wow, that's hardly helpful. I would not have been looking for like 20th line in a stack trace 😮 But ok, let's keep it and we can at least filter that out and find the first line which does not contain |
I've open an issue with React: facebook/react#16348 |
@FredyC awesome, thanks! |
It's safe to use alpha React in dev so it's easier to write tests. Also, allow for alpha in peer deps.
cc @vkrol