Skip to content

Add onLoadFailed callback to detect Google Maps script load/auth failures#255

Merged
ErrorPro merged 1 commit into
ErrorPro:masterfrom
sp00m:on-load-fail
Jun 30, 2026
Merged

Add onLoadFailed callback to detect Google Maps script load/auth failures#255
ErrorPro merged 1 commit into
ErrorPro:masterfrom
sp00m:on-load-fail

Conversation

@sp00m

@sp00m sp00m commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

The library loads the Google Maps script lazily by injecting a <script> tag, but it swallows load failures silently.

This PR adds an optional callback fired when the script fails to load or auth fails:

  • hook: usePlacesWidget({ ..., onLoadFailed })
  • component: <ReactGoogleAutocomplete ... onLoadFailed={...} />

100% backward compatible.

@ErrorPro

Copy link
Copy Markdown
Owner

@sp00m Awesome work, thanks!

@ErrorPro ErrorPro merged commit b9656dc into ErrorPro:master Jun 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants