# ba-react-fetch-list-api

> Core module, combining all other modules into single infrastructure

Latest version **0.2.9** (published 2017-05-11) · ISC license · 0 weekly downloads

## Install

```sh
npm install ba-react-fetch-list-api
pnpm add ba-react-fetch-list-api
yarn add ba-react-fetch-list-api
bun add ba-react-fetch-list-api
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.9 |
| Published | 2017-05-11 |
| First published | 2017-04-27 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 13 |
| Known vulnerabilities | 0 (+10 in 1 direct dependencies) |
| Install scripts | no |
| Author | Artem Rudenko |
| Maintainers | nide |

## Links

- npm: https://www.npmjs.com/package/ba-react-fetch-list-api
- Repository: https://github.com/chunkytae/realtlr
- Issues: https://github.com/chunkytae/realtlr/issues
- npm.io page: https://npm.io/package/ba-react-fetch-list-api

## Dependencies (13)

- [react](https://npm.io/package/react.md) 15.5.3
- [redux](https://npm.io/package/redux.md) 3.6.0
- [lodash](https://npm.io/package/lodash.md) 4.17.3
- [react-dom](https://npm.io/package/react-dom.md) 15.5.3
- [recompose](https://npm.io/package/recompose.md) 0.23.0
- [redux-api](https://npm.io/package/redux-api.md) 0.10.3
- [react-redux](https://npm.io/package/react-redux.md) 5.0.4
- [redux-logger](https://npm.io/package/redux-logger.md) 3.0.1
- [babel-polyfill](https://npm.io/package/babel-polyfill.md) 6.23.0
- [isomorphic-fetch](https://npm.io/package/isomorphic-fetch.md) 2.2.1
- [react-autosuggest](https://npm.io/package/react-autosuggest.md) 9.0.0
- [react-addons-shallow-compare](https://npm.io/package/react-addons-shallow-compare.md) 15.5.2
- [react-addons-css-transition-group](https://npm.io/package/react-addons-css-transition-group.md) 15.5.2

## Recent versions

- 0.2.9 (latest) — 2017-05-11
- 0.2.7 — 2017-05-10
- 0.2.6 — 2017-05-10
- 0.2.5 — 2017-05-10
- 0.2.4 — 2017-05-10
- 0.2.3 — 2017-05-05
- 0.2.2 — 2017-05-05
- 0.2.1 — 2017-05-04
- 0.2.0 — 2017-05-04
- 0.1.1 — 2017-05-03
- 0.1.0 — 2017-04-28
- 0.0.7 — 2017-04-27
- 0.0.6 — 2017-04-27
- 0.0.4 — 2017-04-27
- 0.0.3 — 2017-04-27
- … 2 more at https://npm.io/package/ba-react-fetch-list-api/versions

## README

# Fetch list data from BluAvenu API

## Usage example

Add reducer:
```javascript
  const
    store = createStore(combineReducers({
      fetchApi: fetchListApiReducers([
        {baseURL: settings.API_URL, entity: 'contacts', key: 'contacts'}
      ]),
    ));
```

Now apply HOC. In your component you will get `[flatFetched.contacts]` with fetched data and some meta properties:
```javascript
import FetchListAPI from 'ba-react-fetch-list-api';

compose(
  FetchListAPI({
    baseURL: settings.API_URL,
    entity : 'contacts',

    // These are GET-request params
    fetchParams: props => {search: props.searchValue},

    filters: 'filter.savedFilters',
    key    : 'contacts',
    page   : `incrementalList.${UNIQUE_ID}.page`,
    sorting: `table.${UNIQUE_ID}.sorting`,
  }),
)
```

---
_Source: https://npm.io/package/ba-react-fetch-list-api · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
