LOAD MORE BUTTON!

Hello everyone, i’ve been working on a code for almost two days now, testing and testings and idk how to make it work!
the code is very simply yet bit confusing, so what i am trying to do is to limit the searched data to 10 and LOAD MORE onClick of a button.
My code is


export function searchbutShop_click(event) {
wixData.query(‘Stores/Products’)
.contains(‘name’,$w(“#Searchbar”).value)
.or(wixData.query(‘Stores/Products’).eq (‘sku’,$w(“#Searchbar”).value))
.limit(10)
.find()
.then(res => {
$w(‘#Repeater1’).data = res.items;
console.log(res.length);
if (res.length === 0) {
$w(‘#Text1’).show();
$w(‘#Loadmorebutton’).hide();
} else {
$w(‘#Text1’).hide()
}
});
}


Now where should i put a code that allows me to load more items onClick of the load more button ??? … (my coding skills are pretty limited )

up