New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

reward-data-layer

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

reward-data-layer

The 'Reward Me Now' data layer is a frontend library which uses higher order reducers to consume data from the reward-network-layer.

  • 1.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source


The "Reward Me Now" data layer is a frontend library which uses higher order reducers to consume data from the reward-network-layer.

Install

Install with npm:

 npm install @redu/reward-data-layer --save

Usage

The reducers consume actions from the reward-network-layer by default. This packages exposes multiple higher order reducers which you can use to automatically populate your store and run complex selectors on the data.

import { withOrders } from "@redu/reward-data-layer";

/** Combines all our domain data reducers */
export default combineReducers({
  orders: withOrders()((state, action) => state),
});

You can use the exported reducer to wrap your own reducer and overwrite actions. As default the code above will populate the orders store key with: { data: [] } and conume actions from the reward-network-layer to populate this data.

Dependencies

  • lodash to perform advance data parsing.
  • fuse.js to perform advanced search in our selectors.
  • dayjs is used to parse dates in the selectors.

FAQs

Package last updated on 15 May 2019

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