Collider-Particle
Fetch handler for React-Collider (can be used outside).
Collider-Particle gather all the calls your components need from an API and join then to make the smallest number of call possible. For example if a module needs to call /video/1?fields=title
and another one needs /video/1?fields=created_time
, collider-particle will call /video/1?fields=title,created_time
.
Installation
$ npm install --save collider-particle
Usage
If you use collider-particle with react-collider:
Component static { return 'title' 'thumbnail_240_url' } static { return '/video' } { return <div>thispropstitle<div> } Component static { return VideoItem } static { return '/videos' } static { return 'title' 'owner.usernname' } static { return } { var videos = thispropsdatalist return <div>videos</div> }