Socket
Socket
Sign inDemoInstall

combined-reduction

Package Overview
Dependencies
Maintainers
3
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

combined-reduction

Like Redux's combineReducers, but more better!


Version published
Weekly downloads
27
increased by285.71%
Maintainers
3
Weekly downloads
 
Created
Source

combined-reduction

Like Redux's combineReducers, but more better!

Nested Reducers

Everyone loves a little hierarchy! Place your reducers at any depth in the store:

const reducer = combinedReduction({
  session: session.reducer,
  entities: {
    users: users.reducer,
  },
});

Top Level Reducers

Now, you could use compose to chain together multiple top level reducers, but what's the fun in that?

How about declaring all your reducers in one handy place:

const reducer = combinedReduction(
  migrations.reducer,
  {
    session: session.reducer,
    entities: {
      users: users.reducer,
    },
  },
);

Top level reducers are passed directly as arguments, and are processed in order.

FAQs

Package last updated on 30 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