<commit_before># Redux Meta Reducer
A redux higher order reducer to simplify the state of fetched data. Reduces the amount of boilerplate in reducers and allows for separation of  meta data from fetched data.

## Why?
Keeping isFetching, lastUpdated, and error states (I'm calling this meta state) along side fetched state is common and replicating logic of how to update meta state across multiple reducers can be mundane and repetitive. This library abstracts meta state into a reusable and testable higher order reducer that comes preloaded with the ability to update these meta-states according to specified request, success, and failure action types.

## Setup
Install via npm.

```sh
npm install --save redux-meta-reducer
```

Import the createMeta higher order function. With ES2015 modules:

```javascript
import createMeta from 'redux-meta-reducer';
```

Or with ES5 and CommonJS (don't forget _.default_):
```javascript
var createMeta = require('redux-meta-reducer').default;
```

## Using it
```javascript
import createMeta from 'redux-meta-reducer';
import { combineReducers } from 'redux';

const initialState = {
  users: [],
};
<commit_msg>readme update - #why?<commit_after># Redux Meta Reducer
A redux higher order reducer to simplify the state of fetched data. Reduces the amount of boilerplate in reducers and allows for separation of  meta data from fetched data.

## Why?
Keeping isFetching, lastUpdated, and error states (I'm calling this meta state) along side fetched state is common. Replicating logic of how to update this meta state across multiple reducers can be mundane and repetitive. This library abstracts meta state into a reusable and testable higher order reducer that comes preloaded with the ability to update these meta-states according to specified request, success, and failure action types.

## Setup
Install via npm.

```sh
npm install --save redux-meta-reducer
```

Import the createMeta higher order function. With ES2015 modules:

```javascript
import createMeta from 'redux-meta-reducer';
```

Or with ES5 and CommonJS (don't forget _.default_):
```javascript
var createMeta = require('redux-meta-reducer').default;
```

## Using it
```javascript
import createMeta from 'redux-meta-reducer';
import { combineReducers } from 'redux';

const initialState = {
  users: [],
};

{'fraction_non_alphanumeric': 0.07758620689655173, 'fraction_numerical': 0.004310344827586207, 'mean_word_length': 4.9512820512820515, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '37007', 'n_tokens_mistral': 656, 'n_tokens_neox': 612, 'n_words': 300}