5 lines
233 B
JavaScript
5 lines
233 B
JavaScript
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}.`);
|
|
};
|
|
} |