Hi there …
From your code, I guess that you’re using datasets, and using data query, but why!? You should either use datasets + filtering, or data query, since you have multiple queries, I suggest that you use a backend module to get all the results, then return the final result to the frontend, this will increase performance significently.
Here’s an example
// backend module: contacts.jsw;
import wixData from 'wix-data';
export async function getDetails(phrase) {
try {
let response = {
centers: await queryCenters(phrase),
logs: await queryLogs(phrase),
notes: await queryNotes(phrase)
}
return response;
} catch(err) {
return err;
}
}
// Your page
import {getDetails} from 'backend/contacts.jsw';
import { query } from 'wix-location';
$w.onReady(async () => {
if (query && query.search) {
await getDetails(query.search).then((response) => {
/*
response = {
centers: // Array,
logs: // Array,
notes: // Array
}
*/
// Apply the items as repeaters' data
})
}
})
Please note: I don’t see the onItemReady( ) function anywhere in your code, you need to define it before applying the items as a value of the repeater’s data.
Hope this helps~!
Ahmad