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

No-Reducer Actions

Import functions from the library

import { create, insert, remove, replace, update, append, clear } from "no-reducer"

Here are functions to manage the reducers

Function
Action

create

dispatch( create('YOUR-OBJECT-NAME', { YOUR: OBJECT }) )

insert

dispatch( insert(DESTINATION, 'OBJECT-NAME', {YOUR:OBJECT} ) )

remove

dispatch( remove('DESTINATION') )

replace

dispatch( replace('DESTINATION',{YOUR:OBJECT}) )

update

dispatch( update('DESTINATION', {YOUR:OBJECT}) )

append

dispatch( append('DESTINATION',[my-new-array-items]) )

clear

dispatch( clear('DESTINATION') )

PreviousInstallationNextdestination path

Last updated 2 years ago

πŸ“–