0.1.4 • Published 7 years ago

redux-ship-devtools v0.1.4

Weekly downloads
11
License
MIT
Repository
github
Last release
7 years ago

Redux Ship DevTools

Side effects inspector for Redux Ship.

Screenshot

The Redux Ship DevTools show a 2D view of the side effects of a Redux Ship program:

  • vertically: sequential side effects;
  • horizontally: concurrent side effects.

Go to the demo page to see a live example :rocket:.

Install

Download the extension on the Chrome Web Store (other platforms are not supported yet).

Usage

To enable the Redux Ship DevTools extension in a project you need to connect it to your code. For that, install the devtools package:

npm install redux-ship-devtools

and wrap your controller:

import * as ShipDevTools from 'redux-ship-devtools';

function dispatch(action: Controller.Action): void {
  Ship.run(Effect.run, store, ShipDevTools.inspect(Controller.control)(action));
}

API

inspect

<Action, Effect, Commit, State, A>(
  control: (action: Action) => Ship<Effect, Commit, State, A>
) => (action: Action) => Ship<Effect, Commit, State, A>

Returns a function behaving as control but sending snapshots to the Redux Ship DevTools.

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago