score:1

you can access the current state tree of your application using getstate method inside of your action creator.

export const fetchmovie = text => (dispatch, getstate) => {

  console.log(getstate());   // you can see the info about your state tree here

  axios.get(`https://api.themoviedb.org/3/movie/${text}?api_key=api_key&append_to_response=videos,credits,recommendations,watch/providers`)
  .then(response => dispatch({
    type: specific_movie,
    payload: response.data.results
  }))
  .catch(error => console.log(error))
}

Related Query

More Query from same tag