Fork me on GitHub
#re-frame
<
2015-09-18
>
lancefalcon09:09:26

I'm having a bit of trouble with how to store my data and what the subscriptions should look like. First off, I'm storing the data in normalized form in the re-frame db. Is that the way to go or am I making things more complicated than they need to be?

profil09:09:53

What do you mean by normalized form?

lancefalcon09:09:15

Referring to other things by id

profil09:09:13

I usually just shove all of my data inside the db, if I need to change how some data is represented I just change the affected handlers and subscribtions

mccraigmccraig09:09:46

@lancefalcon: it's reasonable, especially if that reflects your backend storage

lancefalcon09:09:15

Alright. Now let's say that I have a component which displays a user. This user has friends which are referred to by their IDs, and I want to display the names of those friends. How would I go about doing so?

lancefalcon09:09:38

oh, this actually seems to be answered in the re-frame FAQ. Sorry for being lazy and not reading before asking 😞

lancefalcon09:09:29

But thanks for the help anyway simple_smile