UNPKG

@adyen/adyen-platform-experience-web

Version:

![Platform Experience header](https://github.com/Adyen/adyen-platform-experience-web/assets/7926613/18094965-9e01-450e-8dc9-ea84e6b22c2b)

22 lines (21 loc) 526 B
import { struct as s } from "../../../utils/struct/main.js"; import { enumerable as o } from "../../../utils/struct/property.js"; const r = /* @__PURE__ */ Symbol("<<NO_EXCEPTION>>"), m = (n) => { const t = []; return s({ bind: o((c) => function(...i) { let e = r; try { return t.push(c), c.call(this, ...i); } catch (l) { throw e = l; } finally { t.pop(), t.length === 0 && e === r && n(); } }), effect: o(n) }); }; export { m as createEffectStack };