Fork me on GitHub
#keechma
<
2018-04-16
>
sooheon06:04:38

@mihaelkonjevic I seem to remember that somewhere in the app-db, there was information about which datasources had requests pending, is this true? I’d want this to put up loading indicators, for example.

sooheon06:04:18

Right now, I check if the subscription is nil, for example, but when the data changes, I see no indication until it has fully changed.

mihaelkonjevic06:04:30

@sooheon dataloder exports two subscriptions for each data source, e.g. users and users-meta. You can use the meta subscription to check the status. Check here: https://github.com/gothinkster/clojurescript-keechma-realworld-example-app/blob/6726e13e5b5e453ff3b99d57c9400214485c24a2/src/cljs/realworld/ui/components/articles.cljs#L46

sooheon06:04:30

Awesome, I knew this was the kind of thing Keechma would provide. Thanks!