if (userSalesdataEx && credsExist){ console.log("Loading new data...") getAndStoreNewData(); // Voeg hier de benodigde argumenten toe }
if (userSalesdataEx && credsExist){ console.log("Loading new data...") getAndStoreNewData(); // Voeg hier de benodigde argumenten toe }
I have this in my component.tsx file which on its end is a component loaded into a page
export function Page() { return ( <div ><Page></Page> </div> );}
export function Page() { return ( <div ><Page></Page> </div> );}
Now the function that i have now is ran twice when i open the page. I only want this function to run once since it executes an actoin on the server, how come this?