let ii = $w("#dynamicDataset").getCurrentItem()
$w("#dataset1").setFilter(wixData.filter()
.eq("idPatient", ii._id))
.then(() => {
$w('#repeater1').show
})
this is my code for filtering a repeater , the filter is working just fine but there is a small problem:
every time the page loads all items in the collection are populated in the repeater for just a few seconds.
-----------------------------------------------
i tried to solve the problem by hiding the repeater then show after the filter using then() , but for reason the repeater still hiden IDK why
$w("#dataset1").setFilter(wixData.filter()
.eq("idPatient", ii._id))
.then(() => {
$w('#repeater1').show
})
-----------------------------------------------
i tried also this code to solve it :
$w('#repeater1').onItemReady(($w,itemdata,index)=>{
$w('#repeater1').show
})
so that i show the repeater when its ready, the repeater appeared but still did not work
----------------------------------------------
and again i tried another solution :
$w('#dataset1').onReady(()=>{
$w('#repeater1').show
})
the repeater appeared but still do not work
You are missing the () on your .show. See if adding that helps.