declex icon indicating copy to clipboard operation
declex copied to clipboard

Populating a loaded list from firebase

Open yasmanmesa opened this issue 6 years ago • 0 comments

A case has happened to me in which I have an object that contains a list and I'm doing a populate.

Here I put the created object:

    @Model(lazy = true)
    @Populate
    Object_ object

Here is the list of another object in the model of the object that I am doing the populate:

    /*
    * The otherObject list into Object model
    */
    List<OtherObject_> otherObjectList

When I delete the last item from that list and reload the model, the list reloaded from Firebase is loaded with null value, since there are no other elements.

As a consequence, DecleX does not evaluate this situation and keeps the list as null. When the populate is going to be done, since the list is not null, the view is not refreshed with the list and the last item in the application is visually maintained.

yasmanmesa avatar Nov 02 '17 13:11 yasmanmesa