| 12345678910111213141516171819202122232425262728293031 | 
							- // @flow
 - 
 - import { ReducerRegistry } from '../redux';
 - import { PersistenceRegistry } from '../storage';
 - 
 - import { PROFILE_UPDATED } from './actionTypes';
 - 
 - const DEFAULT_STATE = {
 -     profile: {}
 - };
 - 
 - const STORE_NAME = 'features/base/profile';
 - 
 - /**
 -  * Sets up the persistence of the feature base/profile.
 -  */
 - PersistenceRegistry.register(STORE_NAME, {
 -     profile: true
 - });
 - 
 - ReducerRegistry.register(
 -     STORE_NAME, (state = DEFAULT_STATE, action) => {
 -         switch (action.type) {
 -         case PROFILE_UPDATED:
 -             return {
 -                 profile: action.profile
 -             };
 -         }
 - 
 -         return state;
 -     });
 
 
  |