amis-rpc-design/node_modules/react-redux/es/connect/invalidArgFactory.js

5 lines
233 B
JavaScript
Raw Normal View History

2023-10-07 19:42:30 +08:00
export function createInvalidArgFactory(arg, name) {
return (dispatch, options) => {
throw new Error(`Invalid value of type ${typeof arg} for ${name} argument when connecting component ${options.wrappedComponentName}.`);
};
}