Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
redux-immutable-to-js
Advanced tools
A proxy creator for Redux store to convert immutable objects to JS objects.
A proxy creator for Redux store to convert immutable objects to JS objects.
Redux Immutable to JS allows you to convert immutable objects to JS objects automatically when Redux state is required outside reducers.
This library is inspired by Immutable Data Structures and JavaScript.
If you are using Immutable.js in a specific part of your system, don't make anything outside of it access the data structures directly. A good example is Redux and it's single atom app state. If the app state is an Immutable.js object, don't force React components to use Immutable.js' API directly.
npm install --save redux-immutable-to-js
$ cd example
$ npm install
$ npm start
import { createStore } from 'redux';
import immutableToJS from 'redux-immutable-to-js';
import rootReducer from './reducers/index';
// create a store that has redux-immutable-to-js enabled
const finalCreateStore = immutableToJS()(createStore);
const store = finalCreateStore(rootReducer);
import { createStore, applyMiddleware, compose } from 'redux';
import thunk from 'redux-thunk';
import immutableToJS from 'redux-immutable-to-js';
import rootReducer from './reducers/index';
// create a store that has redux-thunk middleware and redux-immutable-to-js enabled
const finalCreateStore = compose(
applyMiddleware(thunk),
immutableToJS()
)(createStore);
const store = finalCreateStore(rootReducer);
MIT
FAQs
A proxy creator for Redux store to convert immutable objects to JS objects.
The npm package redux-immutable-to-js receives a total of 2 weekly downloads. As such, redux-immutable-to-js popularity was classified as not popular.
We found that redux-immutable-to-js demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.