It take some time for the method in Apex to become visible for the lightning component. What is a workaround here?
I see no point to post code here, I am just performing a standard lightning-component to Apex communication every time and I do not have a specific problem, just a recurring one.
In some cases I noticed (but I can not prove it) that if I change a return type of an Apex function, then try to call it from a lightning-component and then change the return type, the function is called successfully.
I just thought that maybe someone else is having the same problem and may suggest something here.
I just checked the
Enable secure and persistent browser caching to improve performance in the Session Settings of the org where the problem takes place. And the caching was disabled all this time, hence the problem is different from the one described here.
The problem happens in a Developer Edition org.
I can not find the following setting:
Setup -> Lightning Components -> Enable Debug Mode checked. I mean the
Enable Debug Mode checked part. What am I missing here?