@dnb/eufemia
Version:
DNB Eufemia Design System UI Library
16 lines (15 loc) • 490 B
JavaScript
;
"use client";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = useLastEventCallCache;
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