https://github.com/gleydson/redux-immutable-persistence-transform
:volcano: Library that allows you to transform immutable data created with seamless-immutable for use with redux-persist
https://github.com/gleydson/redux-immutable-persistence-transform
ramda react react-native redux-persist redux-persist-transform seamless-immutable
Last synced: about 2 months ago
JSON representation
:volcano: Library that allows you to transform immutable data created with seamless-immutable for use with redux-persist
- Host: GitHub
- URL: https://github.com/gleydson/redux-immutable-persistence-transform
- Owner: gleydson
- License: mit
- Created: 2019-05-19T19:36:46.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2020-02-23T16:20:56.000Z (over 6 years ago)
- Last Synced: 2025-09-24T10:49:02.049Z (9 months ago)
- Topics: ramda, react, react-native, redux-persist, redux-persist-transform, seamless-immutable
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/redux-immutable-persistence-transform
- Size: 36.1 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
[](https://badge.fury.io/js/redux-immutable-persistence-transform)

# Redux Immutable Persistence Transform
Library that allows you to transform immutable data created with **seamless-immutable** for use with **redux-persist**
## Why?
As of version 5 of redux-persist, the use of immutable states is no longer supported. In this way it is necessary to use a transformer that will carry out the conversion of its state to immutable data as necessary
## Installation
`yarn add redux-immutable-persistence-transform`
or
`npm i redux-immutable-persistence-transform`
## How to use?
```javascript
import { createStore } from "redux";
import { persistStore, persistReducer } from "redux-persist";
import AsyncStorage from "@react-native-community/async-storage";
import SeamlessImmutablePersistenceTransform from "redux-immutable-persistence-transform";
import reducers from "./ducks";
const persistConfig = {
key: "root",
storage: AsyncStorage,
transforms: [SeamlessImmutablePersistenceTransform]
};
const persistedReducer = persistReducer(persistConfig, reducers);
const store = createStore(persistedReducer);
const persistor = persistStore(store);
export { store, persistor };
```
## License
Distributed under the MIT license. See `LICENSE` for more information.
## Contact
Gleydson Rodrigues - [Github](https://github.com/gleydson) - **gleydsonsr@gmail.com**