# react-redux-remote

> Listen to state changes in react-redux connected components

Latest version **1.1.0** (published 2017-08-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-redux-remote
pnpm add react-redux-remote
yarn add react-redux-remote
bun add react-redux-remote
```

## 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 | 1.1.0 |
| Published | 2017-08-23 |
| First published | 2017-08-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | chbrown |

## Links

- npm: https://www.npmjs.com/package/react-redux-remote
- Repository: https://github.com/chbrown/react-redux-remote
- Homepage: https://github.com/chbrown/react-redux-remote#readme
- Issues: https://github.com/chbrown/react-redux-remote/issues
- npm.io page: https://npm.io/package/react-redux-remote

## Dependencies (1)

- [hoist-non-react-statics](https://npm.io/package/hoist-non-react-statics.md) ^2.3.0

## Recent versions

- 1.1.0 (latest) — 2017-08-23
- 1.0.0 — 2017-08-23

## README

# react-redux-remote

Hook into the `componentDidMount` and `componentWillReceiveProps` stages of the React component lifecycle,
extracting `props` as managed by the `selector` of a [`react-redux`](https://github.com/reactjs/react-redux) `connect()`'ed component.

    import remote from 'react-redux-remote'

    const UserTable = ({users}) => ( ... )
    function mapStateToProps(...) { ... }
    function mapPropsToDependencies(...) { ... }

    const ConnectedUserTable = connect(mapStateToProps)(UserTable)
    const RemoteConnectedUserTable = remote(mapPropsToDependencies, ensureDependency)(ConnectedUserTable)
    export default RemoteConnectedUserTable

Kind of like [`react-refetch`](https://github.com/heroku/react-refetch), but keeps [`redux`](https://github.com/reactjs/redux) in the loop.


## Install

    npm install --save react-redux-remote


## References

* [`react-redux/components/connectAdvanced`](https://github.com/reactjs/react-redux/blob/master/src/components/connectAdvanced.js)


## License

Copyright (c) 2017 Christopher Brown. [MIT Licensed](https://chbrown.github.io/licenses/MIT/#2017).

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