Wappler Version : 4.8.3
Operating System : mac
Server Model: none – mobile app
Database Type:
Hosting Type:
Expected behavior
When the data of a Masonry is updated via a server connect reload, all elements should be refreshed
Actual behavior
Some data is not refreshed
How to reproduce
In a mobile app…
The masonry:
<div is="dmx-masonry" id="each_recipe_card" dmx-bind:repeat="recipes.data.basics" columns-sm="2" columns-md="3" columns-lg="4" columns-xl="5" columns="2" gutter="10" preserve-order="true" gutter-sm="15" gutter-md="15" gutter-lg="15" gutter-xl="20" key="recipe_id">
Within the masonry, there is an icon:
<i class="fas fa-heart fa-2x" dmx-class:text-danger="favorite"></i>
When /recipes is loaded, the first recipe has a null value for “favorite” (which is correct):
After opening a modal and toggling favorite, the server connect refreshes content.recipes. The result is that favorite now has a value (which is correct):
The class text-danger is added and the red heart is displayed (which is correct).
Now we toggle the value again using the exact same process and we have a null value again (still correct):
However, the class of text-danger is still applied…This is the bug.
@patrick perhaps part of the recent dmx updates?