-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Description
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels