Home Manual Reference Source Test Repository

Variable

Static Public Summary
public

The action type dispatched by the update() method.

Static Public

public UPDATE: Symbol source

import {UPDATE} from 'stardux/src/index.js'

The action type dispatched by the update() method.

Example:

Handle update actions in middleware and reducers.

  // Use this value to determine what type of
  // action was dispatched in a reducer or
  // middleware function
  (state, action) => {
    if (UPDATE == action.type) {
       // reducer/middleware logic here
    }
  }