-
Notifications
You must be signed in to change notification settings - Fork 94
Everyone likes to flow these days #52
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
base: master
Are you sure you want to change the base?
Conversation
| import { routerMiddleware, connectRouter } from 'connected-react-router'; | ||
| // Import all reducers | ||
| import * as reducers from 'reducers'; | ||
| import * as reducers from 'reducers/index'; |
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.
Unable to resolve path to module 'reducers/index' import/no-unresolved
Missing file extension for "reducers/index" import/extensions
| @@ -1,10 +1,12 @@ | |||
| // @flow | |||
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.
Resolve error: package.json not found in path import/no-unresolved
Resolve error: package.json not found in path import/no-duplicates
Resolve error: package.json not found in path import/extensions
Resolve error: package.json not found in path import/no-absolute-path
| @@ -1,3 +1,5 @@ | |||
| // @flow | |||
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.
Resolve error: package.json not found in path import/no-unresolved
Resolve error: package.json not found in path import/no-duplicates
Resolve error: package.json not found in path import/extensions
Resolve error: package.json not found in path import/no-absolute-path
Resolve error: package.json not found in path import/no-named-as-default
Resolve error: package.json not found in path import/no-named-as-default-member
| // @flow | ||
|
|
||
| import type { Dispatch } from 'actions/index'; | ||
| import type { AppState } from './app'; |
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.
Unable to resolve path to module './app' import/no-unresolved
Missing file extension for "./app" import/extensions
| @@ -1,3 +1,18 @@ | |||
| // @flow | |||
|
|
|||
| import type { Dispatch } from 'actions/index'; | |||
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.
Unable to resolve path to module 'actions/index' import/no-unresolved
Missing file extension for "actions/index" import/extensions
| @@ -1,3 +1,5 @@ | |||
| // @flow | |||
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.
Resolve error: package.json not found in path import/no-unresolved
Resolve error: package.json not found in path import/no-duplicates
Resolve error: package.json not found in path import/extensions
Resolve error: package.json not found in path import/no-absolute-path
Resolve error: package.json not found in path import/no-named-as-default
Resolve error: package.json not found in path import/no-named-as-default-member
|
|
||
| render() { | ||
| if (!this.props.loaded) { | ||
| const { loaded } = this.props; |
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.
'loaded' is missing in props validation react/prop-types
| componentDidMount() { | ||
| this.props.dispatch(loadApp()); | ||
| } | ||
| const { dispatch } = this.props; |
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.
'dispatch' is missing in props validation react/prop-types
| import { connect } from 'react-redux'; | ||
| import { loadApp } from 'actions/app'; | ||
| import type { Dispatch } from 'actions/index'; | ||
| import type { State } from 'reducers/index'; |
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.
Unable to resolve path to module 'reducers/index' import/no-unresolved
Missing file extension for "reducers/index" import/extensions
| import React, { Component } from 'react'; | ||
| import { connect } from 'react-redux'; | ||
| import { loadApp } from 'actions/app'; | ||
| import type { Dispatch } from 'actions/index'; |
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.
Unable to resolve path to module 'actions/index' import/no-unresolved
Missing file extension for "actions/index" import/extensions
| @@ -1,6 +1,12 @@ | |||
| // @flow | |||
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.
Resolve error: package.json not found in path import/no-unresolved
Resolve error: package.json not found in path import/no-duplicates
|
|
||
| import type { | ||
| LoadApp | ||
| } from './app'; |
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.
Unable to resolve path to module './app' import/no-unresolved
Missing file extension for "./app" import/extensions
| @@ -0,0 +1,9 @@ | |||
| // @flow | |||
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.
Resolve error: package.json not found in path import/no-unresolved
Resolve error: package.json not found in path import/no-duplicates
Resolve error: package.json not found in path import/extensions
| import { loadApp } from 'actions/app'; | ||
| import type { MapStateToProps } from 'react-redux'; | ||
| import type { Dispatch } from 'actions/index'; | ||
| import type { State } from 'reducers/index'; |
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.
Unable to resolve path to module 'reducers/index' import/no-unresolved
Missing file extension for "reducers/index" import/extensions
| @@ -1,6 +1,12 @@ | |||
| // @flow | |||
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.
Resolve error: package.json not found in path import/no-unresolved
Resolve error: package.json not found in path import/no-duplicates
|
|
||
| import type { | ||
| LoadApp | ||
| } from './app'; |
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.
Unable to resolve path to module './app' import/no-unresolved
Missing file extension for "./app" import/extensions
| @@ -0,0 +1,9 @@ | |||
| // @flow | |||
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.
Resolve error: package.json not found in path import/no-unresolved
Resolve error: package.json not found in path import/no-duplicates
Resolve error: package.json not found in path import/extensions
| import { loadApp } from 'actions/app'; | ||
| import type { MapStateToProps } from 'react-redux'; | ||
| import type { Dispatch } from 'actions/index'; | ||
| import type { State } from 'reducers/index'; |
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.
Unable to resolve path to module 'reducers/index' import/no-unresolved
Missing file extension for "reducers/index" import/extensions
| import { connect } from 'react-redux'; | ||
| import { loadApp } from 'actions/app'; | ||
| import type { MapStateToProps } from 'react-redux'; | ||
| import type { Dispatch } from 'actions/index'; |
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.
Unable to resolve path to module 'actions/index' import/no-unresolved
Missing file extension for "actions/index" import/extensions
| import React, { Component } from 'react'; | ||
| import { connect } from 'react-redux'; | ||
| import { loadApp } from 'actions/app'; | ||
| import type { MapStateToProps } from 'react-redux'; |
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.
Unable to resolve path to module 'react-redux' import/no-unresolved
Missing file extension for "react-redux" import/extensions
| @@ -1,22 +1,32 @@ | |||
| // @flow | |||
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.
Resolve error: package.json not found in path import/no-unresolved
Resolve error: package.json not found in path import/no-duplicates
Resolve error: package.json not found in path import/extensions
Resolve error: package.json not found in path import/no-named-as-default
Resolve error: package.json not found in path import/no-named-as-default-member
https://medium.com/@jirikolarik/comprehensive-flow-with-react-redux-bd515d8d0e50