intactile/redux-undo-redo

View on GitHub
src/index.js

Summary

Maintainability
A
0 mins
Test Coverage
import createMiddleware from './createUndoMiddleware';
import createReducer from './createUndoReducer';
import { undo, redo, group, clearHistory, rewriteHistory } from './actions';
import { canUndo, canRedo, getUndoQueue } from './selectors';

export const actions = { undo, redo, group, clearHistory, rewriteHistory };
export const selectors = { canUndo, canRedo, getUndoQueue };
export const createUndoReducer = createReducer;
export const createUndoMiddleware = createMiddleware;