{"size": 805, "ext": "js", "max_stars_repo_path": "common/js/loaders/init.js", "max_stars_repo_name": "galanin/whoosh-directory", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "common/js/loaders/init.js", "max_issues_repo_name": "galanin/whoosh-directory", "max_issues_repo_issues_event_min_datetime": "2019-12-29T05:44:16.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-30T22:26:04.000Z", "max_forks_repo_path": "common/js/loaders/init.js", "max_forks_repo_name": "galanin/whoosh-directory", "max_forks_repo_forks_event_min_datetime": "2020-09-02T10:44:28.000Z", "max_forks_repo_forks_event_max_datetime": "2022-02-09T03:04:39.000Z"}
{"max_stars_count": null, "max_issues_count": 49, "max_forks_count": 2, "avg_line_length": 33.5416666667, "max_line_length": 75, "alphanum_fraction": 0.6782608696}
import { loadNodeTree } from '@actions/nodes';
import { loadExpandedNodes } from '@actions/nodes';
import { loadToCall } from '@actions/to_call';
import { loadFavoritePeople, loadFavoriteUnits } from '@actions/favorites';
import { loadSettings } from '@actions/settings';

let initial_info_requested = null;

export default store =>
  store.subscribe(() => {
    if (!initial_info_requested) {
      initial_info_requested = true;

      store.dispatch(loadNodeTree());

      setTimeout(() => store.dispatch(loadExpandedNodes()), 10);

      setTimeout(() => store.dispatch(loadToCall()), 30);
      setTimeout(() => store.dispatch(loadSettings()), 31);
      setTimeout(() => store.dispatch(loadFavoritePeople()), 33);
      return setTimeout(() => store.dispatch(loadFavoriteUnits()), 42);
    }
  });
