# @orangejellyfish/redux-persist-seamless-immutable

> Use seamless-immutable with redux-persist v5

Latest version **1.0.1** (published 2018-04-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install @orangejellyfish/redux-persist-seamless-immutable
pnpm add @orangejellyfish/redux-persist-seamless-immutable
yarn add @orangejellyfish/redux-persist-seamless-immutable
bun add @orangejellyfish/redux-persist-seamless-immutable
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2018-04-18 |
| First published | 2018-04-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 7.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 50 |
| Author | Hilke Heremans |
| Maintainers | jamesallardice |
| Keywords | redux, persist, seamless, immutable, v5 |

## Links

- npm: https://www.npmjs.com/package/@orangejellyfish/redux-persist-seamless-immutable
- Repository: https://github.com/hilkeheremans/redux-persist-seamless-immutable
- Homepage: https://github.com/hilkeheremans/redux-persist-seamless-immutable#readme
- Issues: https://github.com/hilkeheremans/redux-persist-seamless-immutable/issues
- npm.io page: https://npm.io/package/@orangejellyfish/redux-persist-seamless-immutable

## Alternatives

- [@lexical/table](https://npm.io/package/@lexical/table.md) — 3.0M weekly downloads
- [mantine-datatable](https://npm.io/package/mantine-datatable.md) — 98.2K weekly downloads
- [react-native-collapsible-tab-view](https://npm.io/package/react-native-collapsible-tab-view.md) — 70.6K weekly downloads
- [@handsontable/vue3](https://npm.io/package/@handsontable/vue3.md) — 16.1K weekly downloads
- [vuewordcloud](https://npm.io/package/vuewordcloud.md) — 7.2K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2018-04-18

## README

# redux-persist-seamless-immutable

This package lets you use `seamless-immutable` on a per-reducer basis along with `redux-persist v5`.

Lots of people seem to have trouble with this, so I decided to cobble together a quick fix.

## Why

> Why is this package for me?

You love using `seamless-immutable` with `redux` and `redux-persist` and found yourself enthusiastically upgrading to `redux-persist v5`.

Having read the `redux-persist` docs for v5 you already know that it no longer supports top-level immutable state. But you don't use immutable at that level -- you use it on a per-reducer basis, with top-level state still being a POJO.

You trod on. But, even after using a custom transformer, you then find v5 is consistently throwing you `state.merge is not a function` as soon as any immutable reducer changes state.

## Usage

`npm i redux-persist-seamless-immutable` or `yarn add redux-persist-seamless-immutable`.

### v5

```
import { seamlessImmutableReconciler, seamlessImmutableTransformer } from 'redux-persist-seamless-immutable'

const fooConfig = {
  key: 'foo',
  storage: LocalStorage,
  stateReconciler: seamlessImmutableReconciler,
  transforms: [seamlessImmutableTransformer]
}
```

## Credits

The transformation is based on comments over at `https://github.com/rt2zz/redux-persist/issues/133`. Thanks to @josev55 and @robclouth.

---
_Source: https://npm.io/package/@orangejellyfish/redux-persist-seamless-immutable · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
