'Store dispatch unable to read in a const

I would like to get the data from the dispatch back. I see in console that the call has been made (through network).

const getSetting = async (name) => {
  const test = await store.dispatch(Actions[name])
  console.log(test)
}


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source