Dynamic Api Keys

Đang mở
#871 4 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
25/100
Loại issue
Tính năng
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
javascript, typescript
Lĩnh vực
api, frontend

Hướng nghiên cứu

Bắt đầu từ điểm vào Loader và theo dõi lỗi “Loader must not be called again with different options” khi apiKey thay đổi giữa các domain. Xác định xem apiKey động hoặc nhiều apiKey có được hỗ trợ hay không, đồng thời xác định cách tiếp cận được khuyến nghị; hoàn thành khi hành vi được hỗ trợ hoặc giới hạn được ghi chép rõ ràng.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

type: question wontfix

Hello,

I'm using an app with multiple domains, and I would like to switch between different apiKeys depending on which domain is being used to access the app. However, once I instantiate the component with a particular apiKey, if I then access the app via another domain, I encounter the following error: "Error: Loader must not be called again with different options."

I've tried instantiating it in different components and even in separate routes within the same application to ensure different Loaders are created, but I still encounter the same error.

My question is: once a Loader is instantiated with an apiKey, is it possible to dynamically change it? Or is there any recommended approach to handle multiple apiKeys?

Thank you in advance for your help!

Ngôn ngữ chính
TypeScript
Star
451
Fork
75
Merge trung bình
2 phút
Pull request đã merge (30 ngày)
31

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của googlemaps/js-api-loader

Tất cả issue của googlemaps/js-api-loader

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.