Hi guys,
I'm trying to apply the concepts of the following link
https://support.wix.com/en/article/wix-code-about-the-page-rendering-process#improving-performance-1
My problem, I guess, is that either my html component is not capable to process my data on server side, either it only wakes up (ready) after the handler passing data.
=> How could I pass data after HMTL ready, on renderingCycle ===1 ?
Thanks in advance
Here is my code:
import wixLocation from 'wix-location';
import wixData from 'wix-data';
import wixWindow from 'wix-window';
let query = wixLocation.query
let fonctions = query.ids.split(",");
let newQuery
if (wixWindow.rendering.renderCycle === 1) { newQuery = wixData.query("BaseFonctions").include("_id_contact").limit(1000) .hasSome('_id', fonctions) .find() } $w.onReady(function () { $w('#html1').collapse(); if (wixWindow.rendering.renderCycle === 1) { return newQuery.then((res) => { tableau(res.items) ///fonction posting message (data) to my html component $w('#html1').expand(); }) } });