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.
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.
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.
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.
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.
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.
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.
'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.
'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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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