refun
Version:
A collection of React Hook-enabled functions that compose harmoniously with each other. Similar to `recompose`, but:
12 lines • 474 B
JavaScript
import { createContext } from 'react';
import { ReduxDispatchFactory } from './redux-dispatch-factory';
import { ReduxStateFactory } from './redux-state-factory';
export var StoreContextFactory = function StoreContextFactory(store) {
var Context = /*#__PURE__*/createContext(store);
return {
Context: Context,
mapStoreState: ReduxStateFactory(Context),
mapStoreDispatch: ReduxDispatchFactory(Context)
};
};
//# sourceMappingURL=store-context-factory.js.map