@uppy/store-redux
Make Uppy use your existing Redux store.
Last updated 5 months ago by ifedapoolarewaju .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @uppy/store-redux 
SYNC missed versions from official npm registry.

@uppy/store-redux

Uppy logo: a superman puppy in a pink suit

Build Status

The ReduxStore stores Uppy state on a key in an existing Redux store. The ReduxStore dispatches uppy/STATE_UPDATE actions to update state. When the state in Redux changes, it notifies Uppy. This way, you get most of the benefits of Redux, including support for the Redux Devtools and time traveling!

Uppy is being developed by the folks at Transloadit, a versatile file encoding service.

Example

const { combineReducers, createStore } = require('redux')
const Uppy = require('@uppy/core')
const ReduxStore = require('@uppy/store-redux')
const reducers = require('./reducers')

const reducer = combineReducers({
  ...reducers,
  uppy: ReduxStore.reducer
})

const store = createStore(reducer)

const uppy = new Uppy({
  store: ReduxStore({
    store: store
  })
})

Installation

$ npm install @uppy/store-redux

We recommend installing from npm and then using a module bundler such as Webpack, Browserify or Rollup.js.

Alternatively, you can also use this plugin in a pre-built bundle from Transloadit's CDN: Edgly. In that case Uppy will attach itself to the global window.Uppy object. See the main Uppy documentation for instructions.

Documentation

Documentation for this plugin can be found on the Uppy website.

License

The MIT License.

Current Tags

  • 1.2.4                                ...           latest (5 months ago)

13 Versions

  • 1.2.4                                ...           5 months ago
  • 1.2.3                                ...           6 months ago
  • 1.2.2                                ...           6 months ago
  • 1.2.1                                ...           a year ago
  • 1.2.0                                ...           a year ago
  • 1.1.0                                ...           2 years ago
  • 0.28.3                                ...           2 years ago
  • 0.28.2                                ...           2 years ago
  • 0.28.1                                ...           2 years ago
  • 0.28.0                                ...           2 years ago
  • 0.27.1                                ...           2 years ago
  • 0.27.0                                ...           2 years ago
  • 0.26.0                                ...           3 years ago
Downloads
Today 0
This Week 51
This Month 146
Last Day 9
Last Week 60
Last Month 119
Dependencies (1)
Dev Dependencies (0)
None

Copyright 2014 - 2017 © taobao.org |