Greetings,
I am calling server action on render which is causing performance issue.
is their alternative to call server action when screen is rendered??
thank you in advance
Hello Anand,
You can call that same Server Action inside a Data Action.
Instead of calling your server action during the OnRender event (synchronous call), you can place it as a Fetch.
This will allow you to fetch your data asynchronously.
Then you may control the returned data with a loading variable on the screen and display it only when the Fetch is completed.
Kind regards,
Rui Barradas
Rui Barradas wrote:
Thank you :)
You're welcome!