You need to sign in to do that
Don't have an account?
Bryan Leaman 6
Aura component combined requests only 1 gets a result
I've noticed issues with the lightning framework when multiple requests are combined. I'm working on a new quickAction lightning aura component and I'm issuing 2 calls to my controller for 2 different pieces of information. When the lightning framework combines the requests into a single call to the server I can see both responses in the return payload (using Chrome developer tools), but only 1 of my method calls' callback functions gets invoked. The other does not, so I cannot access the returned data.
I've had to cascade my method calls so the second one is invoked when the first one completes. Then when the second one completes I can access its return data.
Note, I'm using aura because (as far as I can tell) lightningQuickAction isn't available in lwc yet.
(As a side note: I've noticed incomplete native components like today's tasks or list views on my home page don't always get filled in if the requests get combined as well.)
I've had to cascade my method calls so the second one is invoked when the first one completes. Then when the second one completes I can access its return data.
Note, I'm using aura because (as far as I can tell) lightningQuickAction isn't available in lwc yet.
(As a side note: I've noticed incomplete native components like today's tasks or list views on my home page don't always get filled in if the requests get combined as well.)
--
Magulan Duraipandian
https://www.infallibletechie.com/