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
- how select the right element to apply CSS (SASS to be exact) to
- How to route to a page inside a function in React w/ React-Router?
- React render table - match body data to heading data order?
- Express React.js MySql data into variable
- how to disable animation when rendering a page?
- how to remove whitespace from password validation in react
- how to put every third element from an array map into a div react
- How to convert WEBA or Opus audio file to Mp3 using React JS?
- Preloading image on next page in lightbox
- Best way to handle two similar type of useEffect functions in React?
- delete data in firebase using React application
- How to add custom html attributes in JSX
- React Router Link not changing URL or component
- Cannot post error react js
- Access React Context outside of render function
- How to generically type React component props and extend the generic props type
- OneOf Arrays in FireCMS - Firebase
- React useEffect not re-rendering functional component
- How to fix prettier config in vuexy project with react?
- Getting Project Version from Node / package.json in Jenkins
- When I try to run the npm in the terminal, it showing the error
- attach onClick handler to populated list item reactjs
- how to setup react router properly v3?
- Display an image from multer and a database of type uploads / files.jpg
- getting state object from react UI on spring without create model
- Next.js error with npm dependencies that import css
- Way to determine checkbox checked in react (useState)
- Simplest way to generate unique Id onto a value grabbed from a form (React)
- How do I pass one string of an array each time a component is rendered?