11
Views
3
Comments
Solved
how to call server action insted of render??
Question

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

Rank: #157
Solution

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

Rank: #157

You're welcome!


Kind regards,

Rui Barradas