Skip to content
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

Merged
merged 8 commits into from
Sep 14, 2016
Merged

Desktop 1774 part 1 #4199

merged 8 commits into from
Sep 14, 2016

Conversation

MarcoPolo
Copy link
Contributor

@keybase/react-hackers

Upgrades us to flow v0.32! a precursor to a better typed connect

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 : ''
Copy link
Contributor

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 :/

Copy link
Contributor Author

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

@chromakode
Copy link
Contributor

👍 w/ module.hot fixed

@chrisnojima
Copy link
Contributor

why not use {| |}?

@MarcoPolo
Copy link
Contributor Author

@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 Exact.

Besides that reason for using our exact, our eslint flow plugin does not like {| |} yet.

@chromakode
Copy link
Contributor

👍

@cjb
Copy link
Contributor

cjb commented Sep 14, 2016

@MarcoPolo wonder why this didn't merge in?

@MarcoPolo
Copy link
Contributor Author

@cjb I was waiting for part 2: #4273

* Add type defs

* Fix flow errors from adding typed connector

* Attribution

* Make loggerMiddleware type any
Copy link
Contributor

@chromakode chromakode left a 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

@MarcoPolo MarcoPolo merged commit 8031b2c into master Sep 14, 2016
@MarcoPolo MarcoPolo deleted the DESKTOP-1774-part-1 branch September 14, 2016 23:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants