-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Desktop 1774 part 1 #4199
Desktop 1774 part 1 #4199
Conversation
const fields = (error.fields || []).reduce((acc, f) => { | ||
acc[f.key] = f.value | ||
const fields = (Array.isArray(error.fields) ? error.fields : []).reduce((acc, f) => { | ||
const k = f && typeof f.key === 'string' ? f.key : '' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🐑 This is a little wonky (falling back to the key of ''
) but probably not worth complicating it more. Flow isn't really helping here :/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it was falling back to undefined before
👍 w/ |
why not use |
@chrisnojima Flow's new support for Exact types is different than our version of Exact types. It's lacking a couple things we use and our Exact types work for (facebook/flow#2405) So this change renamed our $Exact (which conflicts with Flow's new exact support) to just Besides that reason for using our exact, our eslint flow plugin does not like |
👍 |
@MarcoPolo wonder why this didn't merge in? |
* Add type defs * Fix flow errors from adding typed connector * Attribution * Make loggerMiddleware type any
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Vendor update looks good
@keybase/react-hackers
Upgrades us to flow v0.32! a precursor to a better typed connect