import webapi from './webapi'

export function getTableData(reduce, gf, data) {
  return async (dispatch, getState) => {
    let data = await webapi.getFullData()
    if (data) {
      reduce('tableData', { type: 'update', data})
    }
  }
}
