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

falcor-expand-cache

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

falcor-expand-cache

Expand a falcor cache into a plain JS object

  • 0.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Falcor-Expand-Cache

falcor-expand-cache is a utility for generating "plain JS like" objects that represent the internal cache of a falcor model. These objects are lazy, immutable, and only represent the cache from when it was created.

Installation

To install:

npm install --save falcor-expand-cache

Usage

import expandCache from 'falcor-expand-cache';

const cache = expandedCache(falcor.getCache());

console.log(cache.users[0].company.name) // => Pied Piper

Why?

This was built to help connect falcor to other applications / libraries that require state to be immediately available rather than through a callback or promise. Currently is it used in redux-falcor.

Licence

MIT

Keywords

FAQs

Package last updated on 30 Dec 2015

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