API - Errors - KeyConflictInMergePropsError
Redux-Data-Model API Reference Guide
This reference guide lists all methods exposed by redux-data-model. Contributions like linguistic improvements, adding more details to the descriptions or additional examples are highly appreciated! Please note that the docs are generated from source.
redux-data-model › KeyConflictInMergePropsError
Class: KeyConflictInMergePropsError
Thrown when the props passed from the parent component, mapStateToProps props, or mapDispatchToProps props are conflicting (i.e. have the same name). To fix preferably change your mapStateToProps and mapDispatchToProps implementation to remove the conflicts. Providing your own mergeProps is also an alternative, but keep in mind this conflict check will be ignored when doing so.
Hierarchy
-
↳ KeyConflictInMergePropsError
Index
Constructors
Properties
Constructors
constructor
+ new KeyConflictInMergePropsError(statePropConflicts
: string[], dispatchPropConflicts
: string[], ownPropsConflicts
: string[]): KeyConflictInMergePropsError
Defined in packages/redux-data-model/src/errors.ts:272
Parameters:
Name | Type |
---|---|
statePropConflicts | string[] |
dispatchPropConflicts | string[] |
ownPropsConflicts | string[] |
Returns: KeyConflictInMergePropsError
Properties
message
• message: string
Inherited from NamespaceIsntAStringError.message
Defined in node_modules/typedoc/node_modules/typescript/lib/lib.es5.d.ts:974
name
• name: string
Inherited from NamespaceIsntAStringError.name
Defined in node_modules/typedoc/node_modules/typescript/lib/lib.es5.d.ts:973
Optional
stack
• stack? : undefined | string
Inherited from NamespaceIsntAStringError.stack
Defined in node_modules/typedoc/node_modules/typescript/lib/lib.es5.d.ts:975
Static
Error
▪ Error: ErrorConstructor
Defined in node_modules/typedoc/node_modules/typescript/lib/lib.es5.d.ts:984