Closed saponifi3d closed 9 years ago
writeToCache
& readFromCache
should be passed as fetch options not via the fetch spec. So I am not sure if this PR do the job. I know that we have this PR that has the change to pass the fetch options when doing lazy load : https://github.com/rendrjs/rendr/pull/466/files
@purusho it also opens up ensure keys, ability to fetch more than one model, etc. We also can then set each model / collection as a read from cache and such, sorry that isn't very clear in the description.
This PR basically makes it so we have the rest of the functionality for a controller.
ohh, forget about that change (from this PR https://github.com/rendrjs/rendr/pull/469) :+1: for this PR
LGTM! :cookie:
:+1:
This opens up
writeToCache
,readFromCache
,ensureKeys
, etc to a lazy loaded view on a per spec basis. this also allows someone to lazy load a chunk with multiple models / collections in parallel.