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
When a ResourceCollection is created, its content is undefined (unless you pass in an Array for the content, in which case it's a non-fetchable collection), which means that attempts to pushObject will fail silently. It's fine to say that you can't add items to the collection until it's been fetched. If the fetch fails, however, content is still undefined. I think the proper solution is to add a fail callback to the fetch deferred object that creates an empty content array.
The text was updated successfully, but these errors were encountered:
When a ResourceCollection is created, its
content
is undefined (unless you pass in anArray
for thecontent
, in which case it's a non-fetchable collection), which means that attempts topushObject
will fail silently. It's fine to say that you can't add items to the collection until it's been fetched. If the fetch fails, however,content
is still undefined. I think the proper solution is to add afail
callback to the fetch deferred object that creates an empty content array.The text was updated successfully, but these errors were encountered: