mt-flowbite-react
Version:
Official React components built for Flowbite and Tailwind CSS
18 lines (17 loc) • 449 B
JavaScript
/**
* Middleware that changes the store type
*
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.foo = void 0;
const fooImpl = (f, bar) => (set, get, _store) => {
const store = _store;
store.foo = bar;
return f(set, get, _store);
};
exports.foo = fooImpl;
// ---
// 使用例子:
// const useBearStore = create(foo(() => ({ bears: 0 }), 'hello'))
// console.log(useBearStore.foo.toUpperCase())
;