This commit is contained in:
10
node_modules/react-redux/es/connect/mapStateToProps.js
generated
vendored
Normal file
10
node_modules/react-redux/es/connect/mapStateToProps.js
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
import { wrapMapToPropsConstant, wrapMapToPropsFunc } from './wrapMapToProps';
|
||||
export function whenMapStateToPropsIsFunction(mapStateToProps) {
|
||||
return typeof mapStateToProps === 'function' ? wrapMapToPropsFunc(mapStateToProps, 'mapStateToProps') : undefined;
|
||||
}
|
||||
export function whenMapStateToPropsIsMissing(mapStateToProps) {
|
||||
return !mapStateToProps ? wrapMapToPropsConstant(function () {
|
||||
return {};
|
||||
}) : undefined;
|
||||
}
|
||||
export default [whenMapStateToPropsIsFunction, whenMapStateToPropsIsMissing];
|
||||
Reference in New Issue
Block a user