Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

flux-utils

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flux-utils

Simple Flux stores utilities.

  • 1.0.2
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Flux Utils

Pardon the dust, quickly hacking away at this to make it OSS / Release worthy. Intended use: a util library to facilitate in creating Flux Stores with ease. (More info to come)

Early adopters, careful with breaking changes as the versions rev quickly in early stages.

TODO

  • expose store.dispatchToken for use with #waitFor()
  • write more tests (or fill in the todos)
  • finish this readme, include some examples for usage
  • some other things I'm probably not thinking of
  • oh, a changelog would be nice to keep

Capacitor Quick Start

npm install flux-utils

// myStore.js
import Capacitor from 'flux-capacitors'

let actionHandlers = {};
actionHandlers[MY_CONST_ACTION_TYPE] = function myConstActionTypeHandler (action) {
    // process action, emit change (only if necessary)
    MyStore.emitchange();
};

let MyStore = Capacitor({ actionHandlers }, MyFluxDispatcher);

Mixin Quick Start

npm install flux-utils

// myComponent.js
import { Mixin as Capacitors } from 'flux-capacitors'

var ReactComponent = React.createClass({
    mixins: [Capacitors],
    listenTo: [MyCapacitorStore],
    render () {
        // #wheee
    }
})

Keywords

FAQs

Package last updated on 07 May 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc