@zedux/atoms
Version:
A Molecular State Engine for React
18 lines (17 loc) • 638 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ZeduxPlugin = void 0;
const core_1 = require("@zedux/core");
const plugin_actions_1 = require("../utils/plugin-actions");
class ZeduxPlugin {
constructor({ initialMods = [], registerEcosystem, } = {}) {
this.modStore = (0, core_1.createStore)(null, initialMods);
this.registerEcosystem = registerEcosystem || (() => { });
}
}
exports.ZeduxPlugin = ZeduxPlugin;
/**
* These actions should only be dispatched to an ecosystem's modBus
* store, so they don't need prefixes
*/
ZeduxPlugin.actions = plugin_actions_1.pluginActions;