UNPKG

@raulpesilva/re-state

Version:

easy way to create a shared state to the entire application

14 lines (10 loc) 340 B
"use strict"; exports.__esModule = true; exports.onReStateChange = void 0; var _store = require("./store"); var onReStateChange = function onReStateChange(callback, dependencies) { dependencies.forEach(function (dependency) { return _store.store.subscribe(dependency, callback); }); }; exports.onReStateChange = onReStateChange;