om-next

rads 2017-04-19T23:14:19.875790Z

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

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

rads 2017-04-19T23:14:56.882287Z

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

rads 2017-04-19T23:15:26.887768Z

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

rads 2017-04-19T23:15:48.891851Z

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

rads 2017-04-19T23:16:16.896428Z

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?

rads 2017-04-19T23:16:32.899350Z

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

rads 2017-04-19T23:17:22.908263Z

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