Closed elray1 closed 3 years ago
we have hard coded the initial data that are loaded in at https://github.com/reichlab/Covid-19-Hub-Vizualization/blob/63c7be7f269efbbc3c726a1a53076121e2fe6ef8/store/index.js#L5-L6
Instead, could we load it from whatever the latest available file is, maybe using something like the below?
import current_truth from '~/static/data/truth/case_US_' + available_as_ofs.case[available_as_ofs.case.length - 1] + '.json'; import forecasts from '~/static/data/forecasts/case_US_' + available_as_ofs.case[available_as_ofs.case.length - 1] + '.json';
we have hard coded the initial data that are loaded in at https://github.com/reichlab/Covid-19-Hub-Vizualization/blob/63c7be7f269efbbc3c726a1a53076121e2fe6ef8/store/index.js#L5-L6
Instead, could we load it from whatever the latest available file is, maybe using something like the below?