Fork me on GitHub
#fulcro
<
2018-01-03
>
LL01:01:16

@tony.kay a list of list items, they have a same dropdown ui component wtih same dropdown's options, I want to know which is a better way to define the :query in defsc list-item to normalize db. Now, I just pass a parent(list)-computed data (dropdown's options) to children (list-items) by using prim/computed, so I just need normalize the data of the options once in Root (list).

tony.kay01:01:50

You could look at the dropdown examples in demos

tony.kay01:01:12

or the implementatoin in bootstrap3 namespace

tony.kay01:01:55

The query for a component is always just the data it needs…e.g. :item/id, :item/value, :item/label

tony.kay01:01:18

the ident can be based on the id

tony.kay01:01:32

OR, since the value has to be unique, that could be that ID if you don’t have one

tony.kay01:01:44

once it has an ident, you have normalization

LL08:01:18

need help,

LL08:01:20

How to make the Dropdown's search work. I try {:search (clj->js (fn [] ...))}, but don't work.

LL08:01:59

the behavior just like {:search true}

LL08:01:01

Forget it.

LL08:01:13

Just need to reload page.

maridonkers11:01:14

Anything against giving the HTML body tag an id and use it as app root?

maridonkers11:01:58

Appears to work fine (tried it in fulcro-template).

wilkerlucio15:01:21

@maridonkers the problem with setting your entire body as the app is that in case anything adds something to your body (like developer tools or any kind of plugin you want) it will break the react tree since you are changing elements out of it's control, so I would recommend don't doing it, is there any limitation you are having using the internal element?

maridonkers16:01:31

@wilkerlucio Thanks, won't go that way (app on body tag). Rationale was Bulma instructions on section reading "Use sections as direct children of body." But that doesn't seem an actual limitation so I'll use a div for app.

roklenarcic22:01:49

how does df/lazily-loaded and its :ui/fetch-state property on entities relate to network loading markers?