{"size": 370, "ext": "js", "max_stars_repo_path": "packages/vulcan-errors/lib/client/init.js", "max_stars_repo_name": "Benefiter/Vulcan", "max_stars_repo_stars_event_min_datetime": "2017-04-07T15:06:26.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-27T18:14:56.000Z", "max_issues_repo_path": "packages/vulcan-errors/lib/client/init.js", "max_issues_repo_name": "Benefiter/Vulcan", "max_issues_repo_issues_event_min_datetime": "2017-04-07T10:06:30.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-28T01:49:39.000Z", "max_forks_repo_path": "packages/vulcan-errors/lib/client/init.js", "max_forks_repo_name": "Benefiter/Vulcan", "max_forks_repo_forks_event_min_datetime": "2017-04-08T19:55:17.000Z", "max_forks_repo_forks_event_max_datetime": "2022-02-13T21:11:51.000Z"}
{"max_stars_count": 3324, "max_issues_count": 943, "max_forks_count": 502, "avg_line_length": 24.6666666667, "max_line_length": 62, "alphanum_fraction": 0.7081081081}
import { addCallback } from 'meteor/vulcan:core';
import { initFunctions } from '../modules/index.js';

// on client, init function will be executed once App is ready
export const addInitFunction = fn => {
  initFunctions.push(fn);
};

function runInitFunctions(props) {
  initFunctions.forEach(f => {
    f(props);
  });
}
addCallback('app.mounted', runInitFunctions);
