Skip to content
This repository has been archived by the owner on Oct 19, 2019. It is now read-only.

TalkingData/rxloop-immer

Repository files navigation

rxloop-immer

https://github.com/TalkingData/rxloop/tree/master/packages/immer

rxloop immer plugin

Usage

import rxloop from '@rxloop/core';
import immer from '@rxloop/immer';

const app = rxloop({
  plugins: [ immer() ],
});

app.model({
  name: 'commnet',
  state: {
    list: [],
  },
  reducers: {
    add(state) {
      state.list.push({ id: 1, txt: 'text' });
    },
  },
});

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published