@tanyaisinmybed/effector-undo
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

effector-undo

Simple undo/redo functionality for effector

Example

import { createHistory } from "@tanyaisinmybed/effector-undo";

export const { undo, redo, clear } = createHistory({
  store: counter,
  limit: 10,
  events: [inc, dec],
  filter: (lastState, state) => state - lastState > 3,
  debug: true
});

codesandbox

Dependencies (0)

    Dev Dependencies (2)

    Package Sidebar

    Install

    npm i @tanyaisinmybed/effector-undo

    Weekly Downloads

    7

    Version

    1.0.0

    License

    ISC

    Unpacked Size

    5.4 kB

    Total Files

    5

    Last publish

    Collaborators

    • tanyaisinmybed