# immer-state

> This is a proof of concept of a state manager class that combines [React Hooks](https://reactjs.org/docs/hooks-reference.html), [immer](https://github.com/immerjs/immer) and an adapted [publish-subscribe pattern](https://en.wikipedia.org/wiki/Publish–subs

Latest version **0.8.0** (published 2022-08-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install immer-state
pnpm add immer-state
yarn add immer-state
bun add immer-state
```

## Health

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

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.8.0 |
| Published | 2022-08-18 |
| First published | 2020-04-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=14 |
| Dependencies | 0 |
| Unpacked size | 16 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Wes Souza |
| Maintainers | wessouza |

## Links

- npm: https://www.npmjs.com/package/immer-state
- npm.io page: https://npm.io/package/immer-state

## Recent versions

- 0.8.0 (latest) — 2022-08-18
- 0.7.0 — 2022-07-29
- 0.3.1 — 2021-05-25
- 0.3.0 — 2020-08-17
- 0.2.0 — 2020-06-30
- 0.1.0 — 2020-04-02

## README

# immer-state

This is a proof of concept of a state manager class that combines
[React Hooks](https://reactjs.org/docs/hooks-reference.html),
[immer](https://github.com/immerjs/immer) and an adapted
[publish-subscribe pattern](https://en.wikipedia.org/wiki/Publish–subscribe_pattern).

See the [example files](./example/) for an idea of how this works.

This is a work in progress.

## Installation

```sh
yarn add immer-state
```

```js
import { StateManager, useSelector } from 'https://cdn.pika.dev/immer-state@^0.3.0';
```

## Development

```sh
yarn install
yarn run start
```

## Example

```sh
cd example
yarn install
yarn run start
```

Then open [localhost:1234](http://localhost:1234/).

## Development

This library uses `wes-cli`, which simplifies configuration setup. Instead of
using `yarn install`, you should use `npx wes-cli install`, which will create
all configuration files and run `yarn install`.

[Read more about `wes-cli`.](https://github.com/WesSouza/wes-cli/#wes-install)

## LICENSE

MIT, https://wes.dev/LICENSE.txt

---
_Source: https://npm.io/package/immer-state · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
