mirror of
https://github.com/Unleash/unleash.git
synced 2024-10-18 20:09:08 +02:00
18 lines
394 B
JavaScript
18 lines
394 B
JavaScript
|
import { fromJS } from 'immutable';
|
||
|
import { RECEIVE_CLIENT_INSTANCES } from './client-instance-actions';
|
||
|
|
||
|
function getInitState () {
|
||
|
return fromJS([]);
|
||
|
}
|
||
|
|
||
|
const store = (state = getInitState(), action) => {
|
||
|
switch (action.type) {
|
||
|
case RECEIVE_CLIENT_INSTANCES:
|
||
|
return fromJS(action.value);
|
||
|
default:
|
||
|
return state;
|
||
|
}
|
||
|
};
|
||
|
|
||
|
export default store;
|