Fork me on GitHub
#om-next
<
2017-04-19
>
rads23:04:19

trying to build a generic table component with initial state like this:

{:id :my-table
 :rows `{:top-level-table ~(om/get-query TopLevelTableItem)}}

rads23:04:56

I'm passing :rows as a query for the table component to use to look up the rows it displays

rads23:04:26

I use the parser recursively from the read method of the table to do this

rads23:04:48

however, I noticed that if I use parser recursively, it won't trigger a remote fetch for the :top-level-table key

rads23:04:16

basically the problem I'm trying to solve is: how do I pass in a link to my application data so the generic table component doesn't know about it?

rads23:04:32

and how do I make it work nicely with remote fetching?

rads23:04:22

the same :rows may be shared by multiple instances of the generic table component; that's why I'm using a query