I have no problem setting flat object immutable records. But now I have a problem where I would like to setup a record, I guess maybe a list of records? I'm trying to get my User ref in my firebase database into a immutable record, or records.
So I load my users ref from firebase. It's structure looks like.
I can't figure out how to nest with lists. User has a list of UID's. From there it gets much flatter. But is this even possible to have a List of Records? I haven't seen any examples online so I'm just lost at this point. Any help would be great appreciated.
If I was doing something flatter like just profile it would look like.
export const Profile = Record({
key: null,
profileName: '',
profilePic: '',
teamName: '',
});
It seems getting past the list of UID's is the first challenge Im having a hard time getting past. Once past that initial list it is much flatter.
Maybe I shouldn't even be doing this immutable. Im open to other suggesting for what to do with this data. Im just used to using Immutable records in my application at this point. Was hoping to stick to that pattern for this last bit I have.