1 | ;
|
2 |
|
3 | Object.defineProperty(exports, "__esModule", {
|
4 | value: true
|
5 | });
|
6 | exports["default"] = void 0;
|
7 |
|
8 | var _react = require("react");
|
9 |
|
10 | var 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 |
|
18 | var _default = useValueHistory;
|
19 | exports["default"] = _default;
|
20 | //# sourceMappingURL=useValueHistory.js.map
|