Skip to content

in loadImage.js promise implimentation #2

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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