Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

immer-state

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

  • 0.8.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
7
Maintainers
1
Weekly downloads
 
Created
Source

immer-state

This is a proof of concept of a state manager class that combines React Hooks, immer and an adapted publish-subscribe pattern.

See the example files for an idea of how this works.

This is a work in progress.

Installation

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

Development

yarn install
yarn run start

Example

cd example
yarn install
yarn run start

Then open 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.

LICENSE

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

FAQs

Package last updated on 18 Aug 2022

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc