no-reducer
  • πŸš€Introduction
    • ☺️Demonstration
  • πŸ–₯️Installation
  • πŸ“–No-Reducer Actions
    • 🎯destination path
    • create
      • create an object/array
    • insert
      • insert to an array item
    • remove
      • remove with condition
      • remove without condition
    • replace
      • replace with condition
      • replace without condition
    • update
      • update with condition
    • append
    • clear
      • clear an array item
Powered by GitBook
On this page
  1. No-Reducer Actions

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))

Previousupdate with conditionNextclear

Last updated 2 years ago

πŸ“–