UNPKG

@raulpesilva/re-state

Version:

easy way to create a shared state to the entire application

23 lines (16 loc) 392 B
"use strict"; exports.__esModule = true; exports.setBatch = exports.getBatch = void 0; //inspired by react redux function defaultNoopBatch(callback) { callback(); } var batch = defaultNoopBatch; var setBatch = function setBatch(newBatch) { return batch = newBatch; }; exports.setBatch = setBatch; var getBatch = function getBatch() { return batch; }; exports.getBatch = getBatch;