Fork me on GitHub
#fulcro
<
2021-05-11
>
Hukka11:05:08

I haven't read through the whole developers' guide (yet) but have watched the grokking fulcro series and tried to google answers: does initial data have support for denormalization, so that I could have recursive links to data (for example a Person would show that person's family, but only their names so it doesn't recurse on a component level)? Or not recursive, like an edit form on the side having the first item in the list populated already without duplicating the initial data. Perhaps I shouldn't try to use the :initial-state of a component for this, but modify the state atom itself at startup?

Björn Ebbinghaus14:05:42

initial-state is denormalized data that is beeing normalised with the query from root. I recommend you watch the Fulcro 3 tutorial videos (https://youtube.com/playlist?list=PLVi9lDx-4C_T7jkihlQflyqGqU4xVtsfi) instead of “grokking fulcro” as “grokking fulcro” is more an explanation about the internal workings of fulcro rather then a tutorial.

Jakub Holý (HolyJak)16:05:47

I'd use merge or merge-component, for me it's easier to understand and work with than initial state and easier to switch to load! later

Hukka17:05:11

Gotta have more loads of laundry, still going through the second part of that video series 😉 Video is not a very good format for me, I like going in my own speed

Hukka17:05:29

I'll check merge, thanks

Jakub Holý (HolyJak)20:05:38

It's described in the minimalist fulcro tutorial

Hukka05:05:02

Hadn't heard of that one at all, googled it now