You use Promise.all() in your fetchData() method: your actions are dispatched in parallel, not one after another.
To ensure that you call first destination then properties, you should create one specific async action creator for your Search component. This async action creator would implement the successive requests you need in this case.
- React/Redux State is empty on second action call
- How to call action and set state in componentDidUpdate() in react and redux (prevent infinte loop)
- Can I send an AJAX call in React and Redux without action creators and reducers?
- how and when to call a react component methods after state change from redux
- Dispatching new action after global state changes in react redux
- How to wait for a Redux action to change state from a React component
- React & Redux - state getting empty after route changed
- React redux setting initial state from axios call
- What is recommended way to determine if a Redux state empty array is the initial state or the result of an API call that returns an empty array?
- react redux async action call next function after finishing the function
- Need help to call an action using redux as well as update Component State on a single event of Click?
- React Redux state array variable pass as prop to child component, either infinite loop or empty array
- React Redux - Waiting for async api call to finish before next action is dispatched
- React redux action resetting non attached state
- React redux using state within an action creator
- Empty state in component ( react redux )
- When using React / Redux, how is dispatching an action that merely changes the Redux state vs actually doing some task?
- React Redux onClick Call to Action Creator Not Working
- React Router Link onClick redux action call not calling reducer
- Redux state is nested after call an action
- React component not refreshing when redux state has been updated with successful action
- React ChartJS empty state axios call
- How to call action in button click of component, Even though i'm using connect function which is not calling in React Redux
- React and Redux toolkit : loose the state when I want to use filter action
- How to run a timer in React component for 60 seconds and call a Redux action every 5 seconds
- React Redux Call action within action and get return value
- React & Redux - Handling mutation of state after call API in useEffect
- React Redux - Infinite Scroll call undefined on action props
- React Redux mapStateToProps loads data in the second call
- React Redux Toolkit I can't reach state data items when in action
More Query from same tag
- Using webpack to prepend variables for SCSS
- How to use conditional rendering inside map in React
- react-test-renderer How to Create a Component With Context?
- How can I make the useState append the data and not overrides it
- React redirect after login not working
- Ant design table click on tabel cell
- React component isn't re rendering the fetch data in unit test
- Why is use effect not triggering when it's array dependency changes?
- Create arrays with number in ascending order
- Distinct Value in Json Data
- Unable to use div components with bootstrap classes inside map function in react
- Loop through and get value react
- How to put border bottom to react-chips in reactjs?
- how to pass props down using map
- Mui5 Autocomplete warning
- Testing destructured Context consumer
- Creating and manipulating components with react hooks
- how to debug code with console.log when the code runs slow
- Stuck with the installation of React.js
- How to completely disable a TabPanel component (and grey out the text) and default to the 2nd tab in the index using React
- How to store autocomplete selected option material-ui
- Invalid hook call expo
- Can we apply Reactjs and Jquery together on HTML DOM element
- React testing axios get request in componentDidMount using jest
- ReactJS / Firebase : Show progress icon when .put image
- Redux Action does not recognize the state
- Why do you need to apply the two generated class names (root & disabled) to the DOM to make it work?
- WP Rest API featured image on ReactJS
- Partial Password Masking on Input Field
- Docker stuck at npm install