How to ensure that urlUtils is executed before loading the layer?
urlUtils.addProxyRule({
urlPrefix: "xyz/server/rest/services",
proxyUrl: "https://xyz/proxy.ashx"
});
const MAP = new MapImageLayer({
url: "https://xyz/MapServer",
title: "xyz",
spatialReference: {
wkid: 3826
},
visible: false,
listMode: "hide-children"
});