I’m fetching a list of video channels from API that’s used to create navigation bar. I also have Video
model that has embedded channels that it belongs to - these channels don’t necessary have to be the same as those returned by API for the nav bar. The issue is that ember data puts all channels into a single bucket (identity map), so if I use store.find('channel')
to get channels for nav bar and later I fetch a video that has some other embedded channels, the list of channels in the nav bar changes.
Is there any easy way to make the list of channels fetched from API “immutable”? I was thinking about using plain $.ajax
to avoid going through the store, but I can’t create records directly, only through store.createRecord('channel', data)
, which is exactly what I’m trying to avoid.
Currently I simply have ArrayController
that has content
property set to store.find('channel')
.