loadPrefetchedData = ({
  data,
  dataTransformer = defaultInputDataTransformer,
}) => dispatch => {
  dispatch(loadLocalDataStart());
  const processedData = dataTransformer(data);
  const validatedData = validateInputData(processedData);
  dispatch(loadLocalDataSuccess(validatedData));
}
Use this loader when the data has already been loaded via a 3rd party loader
@param {array} data, an array of objects loaded from e.g. .csv or .arrow files
@param {function} dataTransformer, see `defaultInputDataTransformer` for its signature