# @thecodingmachine/redux-toolkit-wrapper

> [Redux-toolkit](https://redux-toolkit.js.org/) wrapper used to write less code regarding classic CRUD operations

Latest version **2.0.1** (published 2021-04-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install @thecodingmachine/redux-toolkit-wrapper
pnpm add @thecodingmachine/redux-toolkit-wrapper
yarn add @thecodingmachine/redux-toolkit-wrapper
bun add @thecodingmachine/redux-toolkit-wrapper
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.1 |
| Published | 2021-04-13 |
| First published | 2020-10-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 128.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 19 |
| Author | TheCodingMachine Lyon |
| Maintainers | aum_tcm, jed_tcm |
| Keywords | redux, redux-toolkit, thecodingmachine, react-native, react, reactjs |

## Links

- npm: https://www.npmjs.com/package/@thecodingmachine/redux-toolkit-wrapper
- Repository: https://github.com/thecodingmachine/redux-toolkit-wrapper
- Homepage: https://github.com/thecodingmachine/redux-toolkit-wrapper#readme
- Issues: https://github.com/thecodingmachine/redux-toolkit-wrapper/issues
- npm.io page: https://npm.io/package/@thecodingmachine/redux-toolkit-wrapper

## Dependencies (2)

- [@reduxjs/toolkit](https://npm.io/package/@reduxjs/toolkit.md) ^1.4.0
- [metro-react-native-babel-preset](https://npm.io/package/metro-react-native-babel-preset.md) ^0.64.0

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 2.0.1 (latest) — 2021-04-13
- 2.0.0-beta.2 (v2.beta.2) — 2021-04-07
- 2.0.0-beta.1 (v2.beta.1) — 2021-04-07
- 2.0.0-alpha-5 (v2-alpha-5) — 2021-04-07
- 2.0.0-alpha-4 (v2-alpha-4) — 2021-04-07
- 2.0.0-alpha-3 (v2-alpha-3) — 2021-04-07
- 2.0.0-alpha-2 (v2-alpha-2) — 2021-04-07
- 2.0.0-alpha-1 (v2-alpha-1) — 2021-04-07
- 2.0.0 (v2.alpha-0) — 2021-04-06
- 1.3.0 — 2020-11-24
- 1.2.0 — 2020-11-12
- 1.1.0 — 2020-11-02
- 1.0.0 — 2020-10-27

## README

<div align="center">
    <img src="logo.png" alt="Logo" width="100%">
</div>

![Redux Toolkit Wrapper License](https://img.shields.io/github/license/thecodingmachine/redux-toolkit-wrapper)
![Redux Toolkit Wrapper Version](https://flat.badgen.net/npm/v/@thecodingmachine/redux-toolkit-wrapper)
![Redux Toolkit Wrapper Release Date](https://img.shields.io/github/release-date/thecodingmachine/redux-toolkit-wrapper)
![Redux Toolkit Wrapper Download](https://flat.badgen.net/npm/dt/@thecodingmachine/redux-toolkit-wrapper)
![Redux Toolkit Wrapper Stars](https://img.shields.io/github/stars/thecodingmachine/redux-toolkit-wrapper)
![Redux Toolkit Wrapper Top Language](https://img.shields.io/github/languages/top/thecodingmachine/redux-toolkit-wrapper)
![Redux Toolkit Wrapper TypeScript](https://badgen.net/npm/types/tslib)

# TheCodingMachine Redux-toolkit wrapper 

This project is a [Redux-toolkit](https://redux-toolkit.js.org/) wrapper used to write less code regarding classic CRUD operations.  
It's mainly used inside this RN Boilerplate : [`thecodingmachine/react-native-boilerplate`](https://github.com/thecodingmachine/react-native-boilerplate) 

## Installation

```
yarn add @thecodingmachine/redux-toolkit-wrapper
```

## Usage
```javascript
import {
  buildAsyncState,
  buildAsyncReducers,
  buildAsyncActions,
} from '@thecodingmachine/redux-toolkit-wrapper'
import fetchOneUserService from '@/Services/User/FetchOne'

export default {
  initialState: buildAsyncState('fetchOne'),
  action: buildAsyncActions('user/fetchOne', fetchOneUserService),
  reducers: buildAsyncReducers({
    errorKey: 'fetchOne.error', // Optionally, if you scoped variables, you can use a key with dot notation
    loadingKey: 'fetchOne.loading',
  }),
}
```
More information on [the dedicated documentation](https://thecodingmachine.github.io/react-native-boilerplate/docs/AddAStore#redux-toolkit-wrapper)

## License

This project is released under the [MIT License](LICENSE).

## About us

[TheCodingMachine](https://www.thecodingmachine.com/) is a web and mobile agency based in Paris and Lyon, France. We are [constantly looking for new developers and team leaders](https://www.thecodingmachine.com/nous-rejoindre/) and we love [working with freelancers](https://coders.thecodingmachine.com/). You'll find [an overview of all our open source projects on our website](https://thecodingmachine.io/open-source) and on [Github](https://github.com/thecodingmachine).

---
_Source: https://npm.io/package/@thecodingmachine/redux-toolkit-wrapper · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
