score:1
good news is that you can set anything in payload (including an object). so this would be handy:
return {
type: fetch_user,//change constant here with appropriate action type
payload: {infos:infos,streams:streams}
};
Source: stackoverflow.com
Related Query
- How to fetch data with multiple requests in Redux action creator and then send collected data to reducer?
- How to fetch data by existing redux action with hooks?
- How to fetch data on page load and then on button click with useEffect
- How to send data using fetch and POST request with credentials included?
- How can I handle change in multiple input field and send the data to an api with axios?
- How to fetch data and then perform other tasks asynchronously on load with useEffect (React JS)
- How to update redux store tree and then update another tree with data from first?
- Redux how dispatch multiple action types with fetch method
- How to use multiple fetchs with POST, DELETE and then GET requests
- How to send body data and headers with axios get request?
- How to send JWT token with fetch and cors to an Express server in Authorization headers?
- ReactJS - how to fetch multiple data with useEffect
- How to fetch data in getInitialProps with redux-saga.Then get the response from redux store while in the getInitialProps method?
- How action and reducers are connected with each other in react redux
- How to fetch data only once and never again in reacthooks and redux
- how to properly replace axios api with fetch api and map over the received data in nodeJS?
- How can I Fetch and display Mysql data into ReactJS front end with Node JS as backend?
- How to send data from React to Flask then back to react and show output on DOM
- React redux multiple requests in one action creator
- How to fetch data only on first click via react-query and then disable refetch on subsequent clicks
- How to make multiple HTTP requests with RxJS and merge the response into one payload and map it to another action?
- How to fetch and display data from multiple endpoints in React?
- How to send data with fetch in react-redux
- How to maintain action creator types in connected components with Redux, React and TypeScript?
- REACT How to make AJAX requests with Redux and Axios (with promise middleware)?
- How to fetch data from a custom React hook (API) with onClick and display it in a Div using TypeScript?
- How to use data stored in cache with SWR hooks, and how to make SWR fetch only one time
- How to make multiple axios.get() requests with componentDidMount() and assign a response value of the 1st to the 2nd?
- How to test a redux-thunk action that contains multiple API requests and array transformations?
- Dispatch with multiple parameters and create action with Redux Toolkit
More Query from same tag
- Get the width of a text element within SVG using D3 version 4
- How can I refactor this ASYNC call in my react component to make it more readable?
- Framer Motion and React router 5: How do I prevent re-render of parent components with nested routes?
- How to use Jest with React and Webpack
- safari click event not triggert on iphone
- Fetch error: cannot load resource unless page is refreshed - React
- Select a value from dropdown using React
- Uncaught (in promise) SyntaxError: Unexpected end of JSON input on my console
- Why is my state getting mapped one too many times in ReactJS?
- How to override a parent class method in React?
- React: getting undefined when accessing array in state
- Problem with jquery(react-owl-carousel) in gatsby/react
- Trigger onChange function even if an option is already chosen in react
- Update nested react redux state
- React update array index before function execution
- How to define browserHistory on the window object with typescript
- How do I get the offset coordinates of a container in react.js?
- Can't get the actual value of a input in react
- Extracting a component from props.children?
- How to place search boxes side by side in React Js
- React v16: Uncaught TypeError: Cannot read property 'object' of undefined
- jquery fullcalendar Callback is not defined error
- bundle.js created by webpack is not getting loaded when used with node server
- how to test react-select with react-testing-library
- Socket.io-client not connecting to server when path server option is specified
- Recharts stacked bar is painting many labels when rendering a total value for all stacked bars in one row/column. How to make it render just one?
- Client not receiving json response from server
- Bootstrap: Invisible checkbox with normal working inside button
- Jest: TypeError: $(...).modal is not a function
- Trying to us React's useRef in an array to grab an audio' duration