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

fluxury-redux

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fluxury-redux

Connect fluxury stores to redux ecosystem.

  • 1.3.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

fluxury-redux

Circle CI

Quick Start

npm install --save fluxury fluxury-redux
import { createReducer, createStore } from 'fluxury-redux'

Summary

Redux-compatible reducer and compose stores into larger objects; built on Fluxury.

Also, see the React-Fluxury library.

With Redux

var createReduxStore = require('redux').createStore
var createReducer = require('fluxury-redux').createReducer
var MessageStore = require('./MessageStore')
var MessageCountStore = requrie('./MessageCountStore')

// will reduce to array with an item for each store
var store = createReduxStore( createReducer(MessageStore, MessageCountStore) )

Without Redux

Combine multiple stores into a single store. Interface compatible with Redux.

import { createStore } from 'fluxury-redux'
import MessageStore from './MessageStore'
import MessageCountStore from './MessageCountStore'

// will reduce to an object where the stores for messages and count are
// composed into a larger object with the same shape as the input.
//
// Only supports 1 level. Not recursive.
var store = createStore({
  messages: MessageStore,
  count: MessageCountStore
})

Keywords

FAQs

Package last updated on 17 Mar 2016

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