You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// eager loading of 'fetchAllUri' (e.g. parent for embedded collections)
78
-
if(config.avoidNPlusOneRequests&&reloadUri){
79
-
returnapiActions.reload({_meta: {reload: {uri: reloadUri||'',property: reloadProperty||''}}})asPromise<Collection>// we know that reload resolves to a type Collection
78
+
if(config.avoidNPlusOneRequests){
79
+
returnapiActions.reload(thisasunknownasCollection)asPromise<Collection>// we know that reload resolves to a type Collection
80
80
81
81
// no eager loading: replace each reference (Link) with a StoreValue (Resource)
functionisVirtualStoreData(uriOrEntity: string|Resource|EmbeddedCollectionMeta|StoreData|VirtualStoreData|null): uriOrEntity is VirtualStoreData{
173
-
if(uriOrEntity===null)returnfalse
174
-
175
-
if(typeofuriOrEntity==='string')returnfalse
176
-
177
-
// found an object that looks like an EmbeddedCollectionMeta
178
-
return'virtual'inuriOrEntity._meta
179
-
}
180
-
181
-
/**
182
-
* Type guard for EmbeddedCollectionMeta
183
-
* @param uriOrEntity
184
-
*/
185
-
functionisEmbeddedCollection(uriOrEntity: string|Resource|EmbeddedCollectionMeta|StoreData|VirtualStoreData|null): uriOrEntity is EmbeddedCollectionMeta{
0 commit comments