An open API service indexing awesome lists of open source software.

https://github.com/codecademy/use-selector-with

Small utility for react-redux's useSelector that allows passing args.
https://github.com/codecademy/use-selector-with

react react-redux testing typescript useselector

Last synced: 8 months ago
JSON representation

Small utility for react-redux's useSelector that allows passing args.

Awesome Lists containing this project

README

          

# use-selector-with

[![Code Style: Prettier](https://img.shields.io/badge/code_style-prettier-brightgreen.svg)](https://prettier.io)
![TypeScript: Strict](https://img.shields.io/badge/typescript-strict-brightgreen.svg)
[![NPM version](https://badge.fury.io/js/use-selector-with.svg)](http://badge.fury.io/js/use-selector-with)
[![Join the chat at https://gitter.im/Codecademy/use-selector-with](https://badges.gitter.im/Codecademy/use-selector-with.svg)](https://gitter.im/Codecademy/use-selector-with?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

Monorepo for the following two packages:

- [use-selector-with](https://npmjs.com/package/use-selector-with): Small utility for react-redux's `useSelector` that allows passing args.
- [eslint-plugin-use-selector-with](https://npmjs.com/package/eslint-plugin-use-selector-with): ESLint plugin to enforce using `useSelectorWith` when reasonable.

See [use-selector-with.md > Why?](./packages/use-selector-with#why) for why this selector is useful! ✨

## Development

```shell
yarn
yarn lerna bootstrap
yarn compile -w
```

## Contribution Guidelines

We'd love to have you contribute!
Check the [issue tracker](https://github.com/Codecademy/use-selector-with/issues) for issues labeled [`accepting prs`](https://github.com/Codecademy/use-selector-with/labels/status%3A%20accepting%20prs) to find bug fixes and feature requests the community can work on.
If this is your first time working with this code, the [`good first issue`](https://github.com/Codecademy/use-selector-with/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22+) label indicates good introductory issues.

Please note that this project is released with a [Contributor Covenant](https://www.contributor-covenant.org).
By participating in this project you agree to abide by its terms.
See [CODE_OF_CONDUCT.md](./CODE_OF_CONDUCT.md).