I'm confused with that redux thunk action:
import axios from 'axios';
export const GET_CHANNELS = 'GET_CHANNELS'
export const getChannels = () => async (dispatch, getState) => {
const res = await axios.get('https://v-forum-api.bahdcasts.com/api/channels')
dispatch({
type: GET_CHANNELS,
payload: res.data
})
}
What does the following construct mean?
const getChannels=()=>async()=>{}
Can you please provide any article link for that expression? Thank you