logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe git clone https://hacktivis.me/git/mastofe.git

meta.js (388B)


  1. import { STORE_HYDRATE } from '../actions/store';
  2. import { Map as ImmutableMap } from 'immutable';
  3. const initialState = ImmutableMap({
  4. streaming_api_base_url: null,
  5. access_token: null,
  6. });
  7. export default function meta(state = initialState, action) {
  8. switch(action.type) {
  9. case STORE_HYDRATE:
  10. return state.merge(action.state.get('meta'));
  11. default:
  12. return state;
  13. }
  14. };