From 565040aa13895cab305eda862eb341f7c2af2168 Mon Sep 17 00:00:00 2001 From: gwn Date: Fri, 8 Feb 2019 02:08:59 +0300 Subject: [PATCH] Fix a bug regarding the injected props While injecting props to the wrapped component, prioritize props that come from the HOC state over props that are passed from the parent. --- src/components/connect.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/connect.js b/src/components/connect.js index f6f4280..3eacde7 100644 --- a/src/components/connect.js +++ b/src/components/connect.js @@ -225,7 +225,7 @@ function connect(mapPropsToRequestsToProps, defaults, options) { render() { const ref = options.withRef ? 'wrappedInstance' : null return ( - + ) }