repo_description: Build Offline-First Apps for Web and React Native
repo_topics: hacktoberfest offline-capable react react-native redux
code: // @flow
  export default (state: any) => {
    const { offline, ...rest } = state;
    return {
      get: offline,
      set: (offlineState: any) =>
        typeof offlineState === 'undefined'
          ? rest
          : { offline: offlineState, ...rest }
    };
  };
  