Skip to content

feat: add retries #99

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 2 commits into from
Nov 13, 2020
Merged

feat: add retries #99

merged 2 commits into from
Nov 13, 2020

Conversation

jpoehnelt
Copy link
Contributor

@jpoehnelt jpoehnelt commented Nov 13, 2020

The singleton loader will retry on script failures up to retries attempts. A new instance will not retry again.

closes #93

@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 #99 (25b4ef1) into master (9468912) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            master       #99   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            1         1           
  Lines           95       110   +15     
  Branches        19        23    +4     
=========================================
+ Hits            95       110   +15     
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 9468912...25b4ef1. Read the comment docs.

@jpoehnelt jpoehnelt merged commit 4c5eac0 into master Nov 13, 2020
@jpoehnelt jpoehnelt deleted the feat/retries branch November 13, 2020 22:02
github-actions bot pushed a commit that referenced this pull request Nov 13, 2020
# [1.10.0](v1.9.0...v1.10.0) (2020-11-13)

### Features

* add retries for script.onerror with default of 5 retry attempts ([#99](#99)) ([4c5eac0](4c5eac0))
@github-actions
Copy link

🎉 This PR is included in version 1.10.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

private loadErrorCallback(e: Event): void {
this.onerrorEvent = e;
this.callback();
deleteScript(): void {
Copy link
Contributor

@louisnow louisnow Nov 14, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jpoehnelt While working on #102 I noticed this deleteScript function wasn't marked private. Was this intentional, is it a public facing API? I can update the docs if so. :)

timhwang21 added a commit to timhwang21/google-map-react that referenced this pull request Mar 8, 2022
There are some nice changes since 1.7.0:

- googlemaps/js-api-loader#99 -- retries loading the Google Maps script
  (which is a common source of error reports)
- googlemaps/js-api-loader#351 -- fixes bad promise rejection that was
  reported by a user of google-maps-react

It's a fairly big version bump but the vast majority of changes are dev
dependency bumps.
itsmichaeldiego pushed a commit to google-map-react/google-map-react that referenced this pull request Sep 6, 2022
There are some nice changes since 1.7.0:

- googlemaps/js-api-loader#99 -- retries loading the Google Maps script
  (which is a common source of error reports)
- googlemaps/js-api-loader#351 -- fixes bad promise rejection that was
  reported by a user of google-maps-react

It's a fairly big version bump but the vast majority of changes are dev
dependency bumps.
AMagicHarry added a commit to AMagicHarry/google-map-react that referenced this pull request Mar 12, 2024
There are some nice changes since 1.7.0:

- googlemaps/js-api-loader#99 -- retries loading the Google Maps script
  (which is a common source of error reports)
- googlemaps/js-api-loader#351 -- fixes bad promise rejection that was
  reported by a user of google-maps-react

It's a fairly big version bump but the vast majority of changes are dev
dependency bumps.
Hunter0116 added a commit to Hunter0116/google-map-react that referenced this pull request May 26, 2024
There are some nice changes since 1.7.0:

- googlemaps/js-api-loader#99 -- retries loading the Google Maps script
  (which is a common source of error reports)
- googlemaps/js-api-loader#351 -- fixes bad promise rejection that was
  reported by a user of google-maps-react

It's a fairly big version bump but the vast majority of changes are dev
dependency bumps.
justinsand0713 added a commit to justinsand0713/google-map-react that referenced this pull request May 26, 2024
There are some nice changes since 1.7.0:

- googlemaps/js-api-loader#99 -- retries loading the Google Maps script
  (which is a common source of error reports)
- googlemaps/js-api-loader#351 -- fixes bad promise rejection that was
  reported by a user of google-maps-react

It's a fairly big version bump but the vast majority of changes are dev
dependency bumps.
LegendaryNaix added a commit to LegendaryNaix/google-map-react that referenced this pull request May 29, 2024
There are some nice changes since 1.7.0:

- googlemaps/js-api-loader#99 -- retries loading the Google Maps script
  (which is a common source of error reports)
- googlemaps/js-api-loader#351 -- fixes bad promise rejection that was
  reported by a user of google-maps-react

It's a fairly big version bump but the vast majority of changes are dev
dependency bumps.
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
2 participants