An open API service indexing awesome lists of open source software.

https://github.com/axtk/immutable-store

An immutable storage for shared state
https://github.com/axtk/immutable-store

Last synced: over 1 year ago
JSON representation

An immutable storage for shared state

Awesome Lists containing this project

README

          

[![npm](https://img.shields.io/npm/v/@axtk/immutable-store?labelColor=royalblue&color=royalblue&style=flat-square)](https://www.npmjs.com/package/@axtk/immutable-store) [![GitHub](https://img.shields.io/badge/-GitHub-royalblue?labelColor=royalblue&color=royalblue&style=flat-square&logo=github)](https://github.com/axtk/immutable-store) ![browser](https://img.shields.io/badge/browser-✓-345?labelColor=345&color=345&style=flat-square) ![node](https://img.shields.io/badge/node-✓-345?labelColor=345&color=345&style=flat-square) ![TypeScript](https://img.shields.io/badge/TypeScript-✓-345?labelColor=345&color=345&style=flat-square)

# @axtk/immutable-store

_An immutable storage for shared state_

This package introduces the `ImmutableStore` class which is an extension to the `Store` class from the *[store](https://github.com/axtk/store)* package. `ImmutableStore` maintains an immutable internal state, while its API is identical to the [API](https://github.com/axtk/store#store-api) of the `Store` class.

Like the `Store` class, instances of the `ImmutableStore` class can be used as a storage for shared state in React applications.

## Also

- *[react-store](https://github.com/axtk/react-store)* provides a React hook for shared state management in React apps