]> cat aescling's git repositories - mastodon.git/blob - app/javascript/flavours/glitch/reducers/meta.js
Merge branch 'master' into glitch-soc/merge-upstream
[mastodon.git] / app / javascript / flavours / glitch / reducers / meta.js
1 import { STORE_HYDRATE } from 'flavours/glitch/actions/store';
2 import { Map as ImmutableMap } from 'immutable';
3
4 const initialState = ImmutableMap({
5 streaming_api_base_url: null,
6 access_token: null,
7 });
8
9 export default function meta(state = initialState, action) {
10 switch(action.type) {
11 case STORE_HYDRATE:
12 return state.merge(action.state.get('meta'));
13 default:
14 return state;
15 }
16 };
This page took 0.0849 seconds and 4 git commands to generate.