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
  2. replace

replace without condition

Previousreplace with conditionNextupdate

Last updated 2 years ago

To remove an item in an array ( without key ), you can directly write the value which you want to remove.

Example: change the meal crawfish to crayfish

dispatch(replace('User>meal', "crayfish", 'crawfish'))

πŸ“–