JSPM

  • Created
  • Published
  • Downloads 2533
  • Score
    100M100P100Q119678F
  • License MIT

Reactive library for state management, data fetching, caching

Package Exports

  • mutoid

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (mutoid) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Mutoid

Reactive library for state management, data fetching, caching (wip) with some utilities to use with React

Installation

To install the last version

yarn add mutoid rxjs fp-ts fp-ts-rxjs

// or

npm install mutoid // if you use npm >= 7 otherwise you need to install peer dependencies manually

If you want also to use it with react

yarn add react

// or

npm install react

Note rxjs, fp-ts,fp-ts-rxjs are required peer dependencies. Instead react is an optional peer dependency.

If you want to use io-ts decoder in data fetching

yarn add io-ts

// or

npm install io-ts

Modules

Module
State management README
Data fetching README
React bindings README
RxJs Deprecated README

Example

If you want to see a simple app
If you clone this repo, you can run the example with

npm install
npm run dev-server

Test

Unit, lint and cs

npm run test

Type level

npm run test-type