UNPKG

recoil-toolkit

Version:
11 lines 465 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.pushError = void 0; var _core_1 = require("../_core"); var atoms_1 = require("../atoms"); var pushError = function (_a) { var key = _a.key, error = _a.error, taskId = _a.taskId; return (0, _core_1.push)({ key: key, error: error, id: (0, _core_1.uniqueId)(), taskId: taskId }, atoms_1.ERRORS_STACK_SIZE); }; exports.pushError = pushError; //# sourceMappingURL=errors.js.map