jotai-history-global
Version:
Lightweight global undo/redo extension for Jotai. / 为 Jotai 提供全局撤销、重做功能的轻量扩展。
11 lines (10 loc) • 542 B
JavaScript
/**
* Global History System for Jotai with Optimized Diff-based Storage
*
* Provides a system for tracking changes to atoms and enabling undo/redo functionality
* across the entire application using efficient diff-based storage and O(1) atom lookups.
*/
export { atomWithHistory, getAtomValue, setAtomValue } from './atomWithHistory';
export { useHistory } from './useHistory';
export { historyStore, registerHistoryAtom, unregisterHistoryAtom } from './historyManager';
export { createDiff, applyDiff, reverseDiff } from './diffUtils';