Skip to content

in loadImage.js promise implimentation #2

@sastradhar

Description

@sastradhar

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions