You need to sign in to do that
Don't have an account?
Andrew Kulik
debuging LWC objects stuck in proxy
It seems something has changed in Salesforce recently and now when debugging in the browser dev console or trying to use a console log to access a JS object or data everything is stuck in a proxy object. Does anyone know of how to get JS object out of the proxy object?
The below used to work but it doesn't work any more.
console.log(JSON.parse(JSON.stringify(obj)));
The below used to work but it doesn't work any more.
console.log(JSON.parse(JSON.stringify(obj)));
You may check the code below to see how I built the object in js, assigned it to my new proxy object, and added some console. It works as intended:-
Please mark it as the best answer if it will help you.
Thanks