ember-dataloader

0.1.0 • Public • Published

ember-dataloader

Build Status Ember Observer Score npm version

DataLoader is a generic utility to be used as part of your application's data fetching layer to provide a simplified and consistent API over various remote data sources such as databases or web services via batching and caching.

Installation

ember install ember-dataloader

Usage

import DataLoader from 'ember-dataloader';
 
let loader = new DataLoader(keys => fetch('/items?ids=' + keys.join(',')));
 
loader.load(1).then(item => item);

Contributing

Installation

  • git clone <repository-url>
  • cd ember-dataloader
  • yarn install

Linting

  • yarn lint:js
  • yarn lint:js --fix

Running tests

  • ember test – Runs the test suite on the current Ember version
  • ember test --server – Runs the test suite in "watch mode"
  • yarn test – Runs ember try:each to test your addon against multiple Ember versions

Running the dummy application

For more information on using ember-cli, visit https://ember-cli.com/.

License

This project is licensed under the MIT License.

Readme

Keywords

Package Sidebar

Install

npm i ember-dataloader

Weekly Downloads

0

Version

0.1.0

License

MIT

Unpacked Size

270 kB

Total Files

11

Last publish

Collaborators

  • tchak