ladda-js / ladda

JavaScript data fetching layer with caching
https://petercrona.gitbooks.io/ladda/content/
MIT License
112 stars 16 forks source link

byIds #14

Closed LFDM closed 7 years ago

LFDM commented 7 years ago

Adds a byIds apiFn config option, which is the same as byId, just working on a list of ids. It's speciality is that it will only make a request for items which are not present in the cache. Asking for [1, 2, 3] when 1 and 2 are already cached will only make a call for [3].

coveralls commented 7 years ago

Coverage Status

Coverage decreased (-49.7%) to 50.296% when pulling 6bcd534aabf34fa1cdbee0c5f487d4bb5b0b5493 on by-ids into 90a8679180e1d38b491e4bfc388c05023dc87e5f on dedup-plugin.

coveralls commented 7 years ago

Coverage Status

Coverage remained the same at 100.0% when pulling 1278f4d005f9dd79a3d46a405f4bdc38e5c198bb on by-ids into 90a8679180e1d38b491e4bfc388c05023dc87e5f on dedup-plugin.

coveralls commented 7 years ago

Coverage Status

Coverage remained the same at 100.0% when pulling bfdc1b0b66f8d097dfe940959ff70d2be1839fad on by-ids into b0255c3711f65129525f5400b86b9b4be985ce2a on dedup-plugin.