Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

[Bug] When cookies blocked Page hangs when we use APIProvider

オープン
#802 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
react, typescript
領域
api, frontend

調査の方向性

必須の apiKey を指定した APIProvider で、Usercentrics によって Google の Cookie がブロックされている状態で問題を再現し、読み込みの遅延と useApiIsLoaded および useMapsLibrary の結果を確認します。サイトが 10 秒以上ハングせず、ライブラリの状態が Cookie がブロックされた場合に想定される動作と一致すれば完了です。

索引モデルが issue の本文から書いたものです。

説明

bug
Description

We use Usercentrics to block or allow Cookies / Analytics:

When wie are in the "blocked" State then the usage of APIProvider not working correctly:

The site hangs on loading a "long" (10 Sec +) Time and then it works as expected -> Site loads and with useMapsLibrary i get null as expected.

When i check it with DEV Tools i can see this:

Image

In my opinion, the APIProvider should be usable regardless of whether cookies/analytics have been accepted or not. The libraries are then loaded accordingly—or not.

  • This can then be checked using useApiIsLoaded.
  • Call useMapsLibrary and the returned values is the desired Library or null

Or is that not correct and im missing something?

Steps to Reproduce

Block Google with e.g. UserCentrics and use then APIProvider with mandatory apiKey prop

Environment
  • Library version: 1.5.4
  • Google maps version: weekly
  • Browser and Version: Edge 138.0.3351.83
  • OS: Windows 10
主要言語
TypeScript
スター
1.9k
フォーク
195
平均マージ
2日 11時間
マージ済み PR(30日)
14

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

visgl/react-google-maps のほかの issue

visgl/react-google-maps の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。