append
Append is the function that is used to merge new array to an array.
dispatch(append('DESTINATION',[my-array-items]));
Example: Append new users
const response = await axios.get('https://jsonplaceholder.typicode.com/users');
await dispatch(append('Users', response.data))
Last updated