This commit is contained in:
lx
2026-07-06 14:01:11 -04:00
commit c4f97d729d
16468 changed files with 935321 additions and 0 deletions
@@ -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