fixed issue where resources that were fetched from a list where not able to be rendered separately

This commit is contained in:
Art Lowel
2017-06-19 15:20:48 +02:00
parent e37ea12e2d
commit f6550e2628
8 changed files with 100 additions and 57 deletions

View File

@@ -20,6 +20,7 @@ export class AddToObjectCacheAction implements Action {
objectToCache: CacheableObject;
timeAdded: number;
msToLive: number;
requestHref: string;
};
/**
@@ -31,9 +32,13 @@ export class AddToObjectCacheAction implements Action {
* the time it was added
* @param msToLive
* the amount of milliseconds before it should expire
* @param requestHref
* The href of the request that resulted in this object
* This isn't necessarily the same as the object's self
* link, it could have been part of a list for example
*/
constructor(objectToCache: CacheableObject, timeAdded: number, msToLive: number) {
this.payload = { objectToCache, timeAdded, msToLive };
constructor(objectToCache: CacheableObject, timeAdded: number, msToLive: number, requestHref: string) {
this.payload = { objectToCache, timeAdded, msToLive, requestHref };
}
}