From fd11707af728025c9e4eef39c455cf8d1b8b71d9 Mon Sep 17 00:00:00 2001 From: Lucien Greathouse Date: Tue, 15 May 2018 17:51:30 -0700 Subject: [PATCH] Un-forget mapStateToProps parameter to makeStateUpdater --- lib/connect2.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/connect2.lua b/lib/connect2.lua index 98c1afb..530062f 100644 --- a/lib/connect2.lua +++ b/lib/connect2.lua @@ -23,7 +23,7 @@ end stateUpdater is put into the component's state in order for getDerivedStateFromProps to be able to access it. It is not mutated. ]] -local function makeStateUpdater(store, mapStateToProps) +local function makeStateUpdater(store) return function(nextProps, prevState, mappedStoreState) -- The caller can optionally provide mappedStoreState if it needed that -- value beforehand. Doing so is purely an optimization.