@nteract/reducers
TypeScript icon, indicating that this package has built-in type declarations

5.1.13 • Public • Published

@nteract/reducers

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

Installation

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

Usage

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

import * as reducers from "@nteract/reducers";
import * as actions from "@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

Readme

Keywords

none

Package Sidebar

Install

npm i @nteract/reducers

Weekly Downloads

2,189

Version

5.1.13

License

BSD-3-Clause

Unpacked Size

1.04 MB

Total Files

80

Last publish

Collaborators

  • benabel
  • alexandercbooth
  • benrussert
  • mpacer
  • theengineear
  • yuvipanda
  • rgbkrk
  • lgeiger
  • ivanov
  • captainsafia
  • peggyrayzis
  • jdetle
  • hasch
  • willingc
  • stormpython
  • crystalline-cat
  • emeeks
  • hydrosquall