Socket
Book a DemoInstallSign in
Socket

@bodetree/crudux

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

@bodetree/crudux

A redux library for managing CRUD state.

1.2.0
latest
Source
npmnpm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

crudux

Note: crudux is still a work in progress.

Crudux is an attempt to dry up applications using Redux.

After creating a few Redux applications, we noticed we kept rewriting the basic entity reducers/selectors. From those applications I've distilled some basic principals into crudux.

Goals

  • Keep request metadata state
    • crudux stores metadata about requests so that your application can show appropriate loading indicators
  • Paging
    • crudux knows paging. We store pages and paging information from your requests to make it simple to page over your entities.
    • Paging state is grouped into isolated PageGroups which allow multiple paging instances at once.
  • Don't mess with your entities
    • crudux stores operational metadata separately from your entities so you can expect to get out what you put in

Crudux comes with a reducer, and a set of actions / selectors to store your entity state.

It uses normalizr under the hood to store your entities in a normalized way.

Installation

npm install --save crudux
# or 
yarn add crudux

Usage

  • TODO - Fill this section out on how to create a reducer and attach it to your store.

TODO

  • Finish testing for reducers and actions.
  • Flush out tracking of optimistic changes for creating and updating

Thanks

This library was inspired by some great libraries out there.

FAQs

Package last updated on 01 Mar 2017

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.