UNPKG

@dnb/eufemia

Version:

DNB Eufemia Design System UI Library

17 lines (16 loc) 550 B
"use strict"; "use client"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = useLastEventCallCache; require("core-js/modules/web.dom-collections.iterator.js"); var _react = require("react"); function useLastEventCallCache(uncachedDates) { const [cache, setCache] = (0, _react.useState)(undefined); if (cache && (cache.startDate !== uncachedDates.startDate || cache.endDate !== uncachedDates.endDate)) { setCache(undefined); } return [cache, setCache]; } //# sourceMappingURL=useLastEventCallCache.js.map