dr

django_redux

Channels Javascript wrapper for Redux.

Showing:

Popularity

Downloads/wk

5

Maintenance

No Maintenance Data Available

Package

Dependencies

2

Size (min+gzip)

0.9KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

Usage

Channels Javascript wrapper for Redux.

To process messages:

import { ReduxBridge } from 'django_redux';
import { store } from './mystore';

const reduxBridge = new ReduxBridge();
reduxBridge.connect();
reduxBridge.listen(store);

To send messages:

reduxBridge.send({prop1: 'value1', prop2: 'value1'});

To demultiplex specific streams:

const reduxBridge = new ReduxBridge();
reduxBridge.connect();
reduxBridge.listen(store);
reduxBridge.demultiplex('mystream', function(store, action, stream) {
  console.log(action, stream);
  store.dispatch(action);
});
reduxBridge.demultiplex('myotherstream', function(store, action, stream) {
  console.info(action, stream);
  store.dispatch(action);
});

To send a message to a specific stream:

reduxBridge.stream('mystream').send({prop1: 'value1', prop2: 'value1'})

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100