Skip to content

Commit

Permalink
Un-forget mapStateToProps parameter to makeStateUpdater
Browse files Browse the repository at this point in the history
  • Loading branch information
LPGhatguy committed May 16, 2018
1 parent 118b129 commit fd11707
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/connect2.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit fd11707

Please sign in to comment.