How to use the reflux.createActions function in reflux

To help you get started, we’ve selected a few reflux examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github WRidder / react-spa / client / src / actions / navigationActions.js View on Github external
"use strict";
var reflux = require("reflux");

// Create actions
var actions = reflux.createActions([
  "transitionStart",
  "transitionEnd",

  "routeUpdate",

  "documentTitleUpdate"
]);
module.exports = actions;
github rileyjshaw / challenger / client / src / scripts / actions.js View on Github external
// reflux actions
//
var Reflux = require('reflux');

var actions = Reflux.createActions([
  'loadCourse',
  'challengeCompleted',
  'codeEditUser',
  // replaces text in CodeMirror
  'codeEditOverride'
]);

module.exports = actions;
github hzoo / shengji / actions / actions.js View on Github external
'use strict';
const Reflux = require('reflux');

const actions = Reflux.createActions([
  // UI actions
  'showHUD',
  // player actions
  'select',
  'play',
  'draw'
]);

module.exports = actions;
github plainblack / Lacuna-Web-Client / app / js / actions / menu / chat.js View on Github external
'use strict';

var Reflux = require('reflux');

var ChatActions = Reflux.createActions([
    'chatShow',
    'chatHide'
]);

module.exports = ChatActions;
github plainblack / Lacuna-Web-Client / app / js / actions / window.js View on Github external
'use strict';

var Reflux = require('reflux');

var WindowActions = Reflux.createActions([
    'windowAdd',
    'windowClose',
    'windowCloseByType'
]);

module.exports = WindowActions;

reflux

A simple library for uni-directional dataflow application architecture inspired by ReactJS Flux

BSD-3-Clause
Latest version published 8 years ago

Package Health Score

59 / 100
Full package analysis