Skip to content

gmpx-api-loader is being loaded twice #51

@mattcanty

Description

@mattcanty

I wonder if someone experienced with Astro might be able to help me with an issue I have been having using this template.

No matter which way I try to add in a Map using Google Maps Javascript API, I get this issue after adding <gpmx-api-loader>...

image

Note that when a page is refreshed the issue goes away and I can get a map to render perfectly.

I've reduced the changes to the codebase to a minimum to show the root cause of the issue:

https://github.com/Control-Alt-Repeat/website/blob/40f16eda4366eefd5c44bbaa40b97fccafec867a/src/layouts/Base.astro#L186-L187

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions