JoshuaKGoldberg / JoshuaKGoldberg/TypeStat

Investigate adding specific logic for react-redux

Open
#760 1 comment 0 reactions 0 assignees View on GitHub
area: new fixer area: react area: redux status: needs investigation
Dominant language
TypeScript
Stars
2.3k
Forks
47
Avg merge
15h 55m
Merged PRs (30d)
21

Description

### 🚀 Feature Request

There are some practices around react-redux that aren't reasonable to represent using pure type system shenanigans. Off the top of my head:

* `mapStateToProps` should generally take in a type representing the root state
* `dispatch` props are a `Dispatch` type from ... some location, perhaps `react-redux`, perhaps `redux-thunk`, perhaps etc.

#### Existing Behavior

TypeStat has nothing for this.

#### Change Proposal

Let's think about what should be done in TypeStat and file issues for it.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.