repo_description: Build Offline-First Apps for Web and React Native
repo_topics: hacktoberfest offline-capable react react-native redux
code: // @flow
  import type { OfflineAction } from '../types';
  
  const decaySchedule = [
    1000, // After 1 seconds
    1000 * 5, // After 5 seconds
    1000 * 15, // After 15 seconds
    1000 * 30, // After 30 seconds
    1000 * 60, // After 1 minute
    1000 * 60 * 3, // After 3 minutes
    1000 * 60 * 5, // After 5 minutes
    1000 * 60 * 10, // After 10 minutes
    1000 * 60 * 30, // After 30 minutes
    1000 * 60 * 60 // After 1 hour
  ];
  
  export default (action: OfflineAction, retries: number): ?number =>
    decaySchedule[retries] || null;
  