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

combined-reduction

Package Overview
Dependencies
Maintainers
1
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!

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
7
decreased by-22.22%
Maintainers
1
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 24 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