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
- Store auto-updating object inside React state
- How to setup Router link in Reactjs
- Input in another component, error with target
- how can get data from api to child combobox in react
- Sorting number with comma in react-bootstrap-table2
- duplicate browserHistory react-router
- How do I reload a page with react-router?
- React async data in useEffect doesnt trigger render
- Publish Next JS as NON-static files to my Azure web App is not working
- React-select drop down obscured by active state of pagination
- Why is this React Component rendering first?
- Migrate a API request from using promises to observable (using axios)
- Font Awesome is rendering "[object object]" if placed next to a concatenated text
- Firebase database specific membership level only monthly access
- react-chartjs chart renders without colors
- How to edit a form in wizard and save its state for wizard
- getting certain number of info to antd table
- React: Prevent MUI Draggable Dialog From Going Off Screen
- React Router not displaying my components
- Set an argument and call a function with onClick()
- Parsing error: Unexpected token React in functional component
- npm start suddenly would not start a create-reat-app
- Why can I not create variables in React class components?
- MobX. @observable works but @computed don't
- Webpack 5 Receiving a Polyfill Error?!?! My JavaScript React project is receiving a polyfill error while trying to compile my webpack.config.js file
- React Redux - Issue removing an item
- Highlight React JSX element for array of keywords
- Is there a way to take a code which is defined inside render , out from render function in React?
- How to prevent react-query from fetching initially but enables refetching?
- How to redirect using getStaticProps?