You need to sign in to do that
Don't have an account?
agrassi
Lightning Locker Service: Maximum call stack size exceeded on action getCallback()
Hello everyone. The third parameter bellow is a promise, that when resolved or rejected will execute a callback function.
There I receive Maximum call stack size exceeded when Locker service is active.
Any idea on what might be going on?
Thanks!
There I receive Maximum call stack size exceeded when Locker service is active.
var dataService = { request : $A.getCallback(function(actionName, params, defer) { var componentActionName = 'c.' + actionName; var action = component.get(componentActionName); action.setParams(params); action.setCallback(this, function(a) { try { var state = a.getState(); if (state === 'SUCCESS') { defer.resolve(a.getReturnValue()); } else if (state === 'ERROR') { var errors = a.getError(); if (errors) { defer.reject(errors[0].message); } else { defer.reject('Lightning server side unknown error'); } } } catch (ex) { console.log('### Exception: '); console.log(ex); } }); $A.enqueueAction(action); })
Any idea on what might be going on?
Thanks!
More details:
https://success.salesforce.com/issues_view?id=a1p3A000000jkqqQAA
All Answers
Right now the team is looking into the details and potential fix. Once the fix is identified we will release it in a weekly patch.
More details:
https://success.salesforce.com/issues_view?id=a1p3A000000jkqqQAA