node-go/packages/server/play-node-go/src/reducers/stateReducer.js

18 lines
302 B
JavaScript
Raw Normal View History

// @flow
import { initState } from './init/stateReducer.init';
export type state = {
user: {}
}
type action = {
type: string
}
export const stateReducer = (state: state, action: action): state => {
switch (action.type) {
case 'INIT': return initState();
default: return state;
}
}