add gs
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
return function(initialState, handlers)
|
||||
return function(state, action)
|
||||
if state == nil then
|
||||
return initialState
|
||||
end
|
||||
|
||||
local handler = handlers[action.type]
|
||||
|
||||
if handler then
|
||||
return handler(state, action)
|
||||
end
|
||||
|
||||
return state
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user