Fork me on GitHub
#re-frame
<
2021-02-25
>
marek-sed11:02:31

Hi I am new to re-frame, can someone recommend best practices how to structure state.

p-himik12:02:04

Have you read re-frame documentation?

marek-sed13:02:06

I will try to rephrase the question our state is organized by namespaced keywords, so it is sort of organized by folder structure. So I might be asking also how to structure re-frame projects. Valid answer for that is depends on what are you building. So that should imply, my question is rather. If there are some good example of well structured re-frame application?

p-himik13:02:48

I don't think so since it will all be subjective anyway. E.g. re-frame docs use the "split views/events/subs/whatever into their own namespaces" approach. I find it annoying, I prefer grouping code by functionality.

💯 1
p-himik13:02:31

I don't really think re-frame should affect any decision on how to organize your project. For me, that question would just become "how to organize any web UI project". Which sounds even more vague. :)

marek-sed13:02:28

yeah that probably speaks for strength of the re-frame, still trying to orient myself. Thanks for the answer it was helpful.🙂

👍 1
henryw37414:02:34

I wrote some stuff the other day that goes into some stuff about what state you can avoid putting in re-frame db https://widdindustries.com/clojurescript-firebase-simple/

thanks 1