UNPKG

461 BJavaScriptView Raw
1"use strict";
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6exports["default"] = void 0;
7
8var _react = require("react");
9
10var useValueHistory = function useValueHistory(value) {
11 var history = (0, _react.useRef)([]);
12 (0, _react.useEffect)(function () {
13 history.current.push(value);
14 }, [value]);
15 return history.current;
16};
17
18var _default = useValueHistory;
19exports["default"] = _default;
20//# sourceMappingURL=useValueHistory.js.map