Как добавить параметры в React Redux - PullRequest
0 голосов
/ 08 февраля 2020

React Redux - это ginen api, и я должен добавить параметры perPage, currentPage, order, orderBy. как я могу это реализовать?

export const getProducts = () => async dispatch =>{

    try{
        const response = await FetchApi.get(`${category}`)
        console.log(2, response)

        dispatch({
          type:'GET_PRODUCTS',
          data: response.data
    })

    }catch(e){
        console.log(e.message);
    }
}
...