Skip to content
This repository was archived by the owner on Jan 21, 2018. It is now read-only.

agentcooper/react-redux-flow-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⚠️ Warning: this example is not up to date anymore. Please check official docs for Flow + Redux.

react-redux-flow-example

Based on definitions done by @gcanti in reduxjs/redux#1887.

Current state

src/Counter.js is 100% Flow covered connected component.

Flow can check props for it: try removing text prop for Counter in src/App.js.

Awkward parts

If you want to use ownProps inside the connected component (not just mapStateToProps/mapDispatchToProps), you should merge ownProps into stateProps for the type check.

To-do

  • Typed thunked actions
  • Use $Exact type to filter out redundant props

Running Flow

npm run flow

About

⚠️ ♻️ Warning: not up to date

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published