ember-dataloader
v0.1.0
Published
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.
Readme
ember-dataloader
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-dataloaderUsage
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-dataloaderyarn install
Linting
yarn lint:jsyarn lint:js --fix
Running tests
ember test– Runs the test suite on the current Ember versionember test --server– Runs the test suite in "watch mode"yarn test– Runsember try:eachto test your addon against multiple Ember versions
Running the dummy application
ember serve- Visit the dummy application at http://localhost:4200.
For more information on using ember-cli, visit https://ember-cli.com/.
License
This project is licensed under the MIT License.
