Socket
Socket
Sign inDemoInstall

combined-reduction

Package Overview
Dependencies
6
Maintainers
3
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    combined-reduction

Like Redux's combineReducers, but more better!


Version published
Weekly downloads
12
increased by71.43%
Maintainers
3
Install size
1.85 MB
Created
Weekly downloads
 

Readme

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

Last updated on 30 Mar 2016

Did you know?

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc