Skip to content

feat: change to singleton and fix resolve error #91

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Nov 13, 2020
Merged

Conversation

jpoehnelt
Copy link
Contributor

@jpoehnelt jpoehnelt commented Nov 13, 2020

This change converts the Loader class to a singleton. Probably should have done this from the start.

closes #90

@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Nov 13, 2020
@codecov
Copy link

codecov bot commented Nov 13, 2020

Codecov Report

Merging #91 (1670563) into master (adda1d6) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            master       #91   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            1         1           
  Lines           96        95    -1     
  Branches        17        19    +2     
=========================================
- Hits            96        95    -1     
Impacted Files Coverage Δ
src/index.ts 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update adda1d6...1670563. Read the comment docs.

@jpoehnelt jpoehnelt merged commit 70f0cdc into master Nov 13, 2020
@jpoehnelt jpoehnelt deleted the feat/singleton branch November 13, 2020 17:44
github-actions bot pushed a commit that referenced this pull request Nov 13, 2020
# [1.9.0](v1.8.0...v1.9.0) (2020-11-13)

### Features

* change to singleton and fix resolve error ([#91](#91)) ([70f0cdc](70f0cdc))
@github-actions
Copy link

🎉 This PR is included in version 1.9.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement. released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Calling the Loader twice when the API fails causes it falsely resolve the older promise
1 participant