问题描述
现在我想观察特定实体的数据并在该实体更新时更改列表。
我看到了文档 DataObserver & Rx 并尝试如下实现它。
Stream<Query<InvoiceList>> watchedQuery = deliveryListBox!.query(InvoiceList_.dispatch.equals(true)).watch();
sub1 = watchedQuery.listen((Query<InvoiceList> query) {
// This gets triggered any there are changes to the queried entity types.
// You can call any query method here,for example:
getDataFromLocal("");
});
我想在 dispatch 更改但此代码没有发生任何事情时更新列表。
任何人都可以帮助实现这一目标吗?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)