I am getting Server requests in client events in findings in ai mentor studio so what implementation or logic needs to be implemented so that this can be fixed.
Hi @Vaibhavi Paranjpe
This is because server actions should be avoided in client events. Server actions can take time to get the response which impacts the screen render time.
You need to revisit the implementation( for e.g. try to use server actions from screen actions)
Hi Vaibhavi,
As stated above, server actions take time. This is because for each server action called in a client action a roundtrip to the server needs to be made. If you create one server action that calls the other server actions, then you have only 1 roundtrip to the server.Regards,Lennart