简体   繁体   中英

Realm: Not Getting Data Back

So I get a list of 400 objects and put it into a collection to copyToRealm() . Then, I do a findAllSorted() and I get an empty array back. So I debugged to try to figure out what is wrong. I checked the Realm database with Stethos and I see my objects I created there, but when I do findAllSorted() , it says there is nothing. Is there something about copyToRealm() where it is asynchronous or something. Because after that line where I call copyToRealm() , I would expect there to be results afterwards but there are not.

答案可以在上面的评论中找到。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM