UNPKG

@dhmk/atom

Version:

Lightweight mobx-like observable values, computed values and side-effects

19 lines (18 loc) 510 B
var Id = /** @class */ (function () { function Id() { } return Id; }()); export { Id }; export var AtomState; (function (AtomState) { AtomState[AtomState["Actual"] = 0] = "Actual"; AtomState[AtomState["PossiblyStale"] = 1] = "PossiblyStale"; AtomState[AtomState["Stale"] = 2] = "Stale"; })(AtomState || (AtomState = {})); export var defaultAtomOptions = { equals: Object.is, }; export var defaultEffectOptions = { scheduler: function (fn) { return fn(); }, };