Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/aikoven/ice-redux-devtools

Redux DevTools Extension add-on that handles serialization of ZeroC Ice stuff
https://github.com/aikoven/ice-redux-devtools

Last synced: 3 days ago
JSON representation

Redux DevTools Extension add-on that handles serialization of ZeroC Ice stuff

Awesome Lists containing this project

README

        

# Ice Redux DevTools [![npm version][npm-image]][npm-url]

Handles serialization of [ZeroC Ice](https://github.com/zeroc-ice/ice) stuff for
[Redux DevTools Extension](https://github.com/zalmoxisus/redux-devtools-extension).
Transparently converts Ice object instances to plain JS objects before sending
them to DevTools. On time travel converts them back to actual instances before
they end up in application code. Supports `long`, `enum`, `struct`, `dictionary`,
`exception` and `class`.

## Installation

$ npm install ice-redux-devtools

## Usage

```ts
import {composeWithDevTools} from 'redux-devtools-extension';
import {enhancerOptions} from 'ice-redux-devtools';

const composeEnhancers = composeWithDevTools(enhancerOptions);

const store = createStore(reducer, /* preloadedState, */ composeEnhancers(
applyMiddleware(...middleware),
// other store enhancers if any
));
```

[npm-image]: https://badge.fury.io/js/ice-redux-devtools.svg
[npm-url]: https://badge.fury.io/js/ice-redux-devtools