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
[react] add tests for useState #36338
Conversation
Add a test case to prevent this from happening again: DefinitelyTyped@598ffd0#r34006320
So how does this pass here but not in the reported cases? |
@joehillen Thank you for submitting this PR! 🔔 @johnnyreilly @bbenezech @pzavolinsky @digiguru @ericanderson @DovydasNavickas @onigoetz @theruther4d @guilhermehubner @ferdaber @jrakotoharisoa @pascaloliv @Hotell @franklixuefei @Jessidhia @saranshkataria @lukyth @eps1lon - please review this PR in the next few days. Be sure to explicitly select If no reviewer appears after a week, a DefinitelyTyped maintainer will review the PR instead. |
@ferdaber Correct. Here is the test output if I revert your revert:
|
👋 Hi there! I’ve run some quick performance metrics against master and your PR. This is still an experiment, so don’t panic if I say something crazy! I’m still learning how to interpret these metrics. Let’s review the numbers, shall we? Comparison details 📊
It looks like nothing changed too much. I’m pretty lenient since I’m still an experiment, so take a look anyways and make sure nothing looks out of place. If you have any questions or comments about me, you can ping |
Is it effectively just a difference between versions? (CC @weswigham) |
I don't understand your question. Different versions of what?
…On Fri, Jun 21, 2019, 01:14 Daniel Rosenwasser ***@***.***> wrote:
Is it effectively just a difference between versions? (CC @weswigham
<https://github.com/weswigham>)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#36338?email_source=notifications&email_token=AABCBZBUGSQDF5NNBP4PNILP3SEX5A5CNFSM4H2GTMR2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYHY6AA#issuecomment-504336128>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABCBZC2DTNSHT4ESH3MB3LP3SEX5ANCNFSM4H2GTMRQ>
.
|
To clarify, this test case is a common pattern in my React codebase and is what started returning an error when I updated @types/react and TS 3.5 yesterday. I suspect the error has to do with both the bad commit and the smarter type unions change introduced in 3.5. What I think happened is Because it is such a common pattern in React, I thought it made an obvious test case. |
Add a test case to prevent this from happening again: DefinitelyTyped@598ffd0#r34006320
Add a test case to prevent this from happening again.
Please fill in this template.
npm test
.)npm run lint package-name
(ortsc
if notslint.json
is present).