Comment 11 for bug 1243395

Revision history for this message
Cris Dywan (kalikiana) wrote :

> The second of the two is an illustration of how to approach
> removing an item from a model of a ListView, using the
> remove method that already exists for that purpose in QML.

What kind of model? How would it remove documents from a U1Db database? I don't follow.

> A Document that has 'contents' from the underlying data repository
> that are represented by an empty JSON string ("{}") and
> one that is completely empty ("") are not (supposed to be) the same thing

There is no way to distinguish that in the API. putDoc('', docId) is the current way to get rid of documents and making them not show up in a ListView anymore. There're unit tests verifying this behavior.