Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
config
public
scripts
src
.gitignore
README.md
package.json
tsconfig.json
tsconfig.prod.json
tsconfig.test.json
tslint.json
yarn.lock

README.md

Typescript Redux, Thunks, and React

This is an example project demonstrating the issues with redux-thunks and TypeScript.

  • src/index.tsx general selector component
  • src/index.tsx mock http client

example apps

  • src/no-thunks.tsx – plain functions for async calls, type safe
  • src/redux-thunks.tsx – redux thunk, type errors but actually works
  • src/redux-sagas.tsx – redux sagas, works fine
  • src/redux-observables.tsx – redux observables, also works fine

Dev

yarn start

yarn typecheck

yarn lint

yarn format
You can’t perform that action at this time.