You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the great library.
in the file loadImage.js I think you should return resolve of the promise as show below.
Sorry if I am wrong but I had to do this to get my code to work. Thanks
import createImage from "./createImage.js"
function loadImage(imageId, options) {
const promise = new Promise((resolve, reject) => {
const image = createImage(imageId);
resolve(image);
});
return{ promise};
}
export default loadImage
The text was updated successfully, but these errors were encountered:
Thanks for the great library.
in the file loadImage.js I think you should return resolve of the promise as show below.
Sorry if I am wrong but I had to do this to get my code to work. Thanks
import createImage from "./createImage.js"
function loadImage(imageId, options) {
const promise = new Promise((resolve, reject) => {
const image = createImage(imageId);
resolve(image);
});
return{ promise};
}
export default loadImage
The text was updated successfully, but these errors were encountered: