Fork me on GitHub
#re-frame
<
2019-02-18
>
lepistane11:02:53

how do you guys turn of re-frame-10x in mobile browsers during development?

andrea.crotti13:02:54

how are people using namespaced keywords in reframe dbs?

andrea.crotti13:02:12

Something like

{:long.namespace/value [1 2]
 :long.namespace/other-value [3 4]}
Or
{:long.namespace {:value [1 2]
                  :other-value [3 4]}}

2️⃣ 5
andrea.crotti13:02:49

I prefer the second option actually, and it makes it easier to do things like spec validation

andrea.crotti13:02:00

but sadly the project I'm working on uses the first approach

mccraigmccraig13:02:29

u mean in literals @andrea.crotti? ('cos both those approaches produce = values)

mccraigmccraig13:02:54

oh, no they don't... i misread

andrea.crotti13:02:02

yeah it's not the same

andrea.crotti13:02:33

the second option encapsulates a bit better imho, and it's easier to reason about a sub-db

andrea.crotti13:02:56

or can I still extract easily a sub-db with the first option?

mccraigmccraig14:02:10

you would have to filter rather than just get to extract a sub-db with the first option

andrea.crotti14:02:11

you mean a select-keys with all the namespaced keys?

andrea.crotti14:02:22

or someone filtering with just :long.namespace?