Skip to content

'Loader must not be called again with different options' error when passing new 'language' prop #3168

@NazarDevsMedia

Description

@NazarDevsMedia

in my nextjs project I use i18 framework.
i want to pass current locale (current active language) to language prop of useJsApiLoader, but if user changes the language exactly this error 'Loader must not be called again with different options' appears.
how would you recommend to use different language option without calling the loader again?

os: mac

node --version 19.0.1

react version 18.2.0

nextjs version 13.1.1

next-i18next version 13.0.2

@react-google-maps/api version 2.17.1

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