2.4.1 • Published 5 years ago

@tsiry/nteract-reducers v2.4.1

Weekly downloads
2
License
BSD-3-Clause
Repository
-
Last release
5 years ago

@tsiry/nteract-reducers

This package contains a set of Redux reducers for use in nteract applications.

Installation

$ yarn add @tsiry/nteract-reducers
$ npm install --save @tsiry/nteract-reducers

Usage

The example below shows how we can use the functions within this package and those within @tsiry/nteract-actions and @nteract/types to set the isSaving property on a notebook state.

import * as reducers from "@tsiry/teract-reducers";
import * as actions from "@tsiry/nteract-actions";
import * as state from "@nteract/types";

export default () => {
  const originalState = state.makeAppRecord({
    isSaving: true
  });
  reducers.app(originalState, actions.saveFulfilled({}));
};

Documentation

We're working on adding more documentation for this component. Stay tuned by watching this repository!

Support

If you experience an issue while using this package or have a feature request, please file an issue on the issue board and add the pkg:reducers label.

License

BSD-3-Clause