{
console.log('Received listingsUpdated event', event.detail);
// Check if this is a load more operation
if (event.detail.isLoadMore && event.detail.newListings) {
// Add only the new listings without clearing existing ones
addNewListings(event.detail.newListings);
} else {
// Regular update - replace all listings
updateListings(event.detail.listings || []);
}
});">