mt-flowbite-react
Version:
Official React components built for Flowbite and Tailwind CSS
13 lines (12 loc) • 379 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.logger1 = void 0;
const loggerImpl = (f, name) => (set, get, store) => {
const loggedSet = (...a) => {
set(...a);
console.log(...(name ? [`${name}:`] : []), get());
};
store.setState = loggedSet;
return f(loggedSet, get, store);
};
exports.logger1 = loggerImpl;
;