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
class Album {
id: string;
name: string;
}
@Collection()
class Band {
id: string;
name: string;
@SubCollection(Album, 'albums')
albums: ISubCollection<Album>;
@SubCollection(Album, 'singles')
singles: ISubCollection<Album>;
}
There are obvious workarounds, but I believe this should not cause an error.
I tried to fix it on my fork, however MetadataStorage.setCollection() seems to evaluate children before parents and updating the segments afterwards using a getWhereImParent() function. It becomes more of a design choice than a simple bug fix at this point, please advise.
The text was updated successfully, but these errors were encountered:
This will cause an error to be thrown:
There are obvious workarounds, but I believe this should not cause an error.
I tried to fix it on my fork, however
MetadataStorage.setCollection()
seems to evaluate children before parents and updating the segments afterwards using agetWhereImParent()
function. It becomes more of a design choice than a simple bug fix at this point, please advise.The text was updated successfully, but these errors were encountered: