Catalog npm
Back to packageRELEASE DETAILS

1.0.0

npm

11online-redux-helpers

Helpers for managing state in redux

redux
Published8 Sept 2017
Direct dependencies0
Transitive dependenciesNot calculated

README

Current package documentation

11online Redux Helpers

Some helpful helper functions from merging state and deleting from state.

Current version only uses id.

Import like so: import {mergeState, deleteFromState} from '11online-redux-helpers';

Use like so in your reducer:

case POST_ACTIVITY_SUCCESS:
	return {
	    ...state,
	    isFetching: false,
	    error: [],
	    activities: mergeState(state.activities, action.payload)
	};

or

case DELETE_ACTIVITY_SUCCESS:
    return {
        ...state,
        isFetching: false,
        error: [],
        activities: deleteFromState(state.activities, action.payload)
    };

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 0

Native requirements
0 direct targetsNot calculated transitive count
No declared dependencies in this collected response

Declarations describe requirements; they are not a resolved dependency graph.

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "a8c1a14507a112e9af3df58f8ed271a620548a69",
  "tarball": "https://registry.npmjs.org/11online-redux-helpers/-/11online-redux-helpers-1.0.0.tgz",
  "integrity": "sha512-vGK0+l58cj8sMVIr5VIm6nYClSLj1RpsT0+THhqN4gEGqrbTZAxTCo6wRsZESLhi8r9eCbGtU1+JHXMyBZDUEA==",
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEUCIDhKLS/ICaI2/QBtt1FVT/08EaTgCyG/be1ZnqBhOJNlAiEA5QyKB1EgixnxcNLOI9FiQOKFSYERychrDXbUhunH4dk="
    }
  ]
}

Repository

PENDING
11online/redux-helpers

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 18:05 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:f764fa4b99a754bc772adbf2bf9fbec21aced0fb98e4c2e61d1cd42022dbbf4f

Other collected versions

1.0.24 Oct1.0.121 SeptView all collected versions →