File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
src/content/reference/react Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -157,7 +157,7 @@ function emitChange() {
157
157
158
158
### ブラウザ API へのサブスクライブ {/*subscribing-to-a-browser-api*/}
159
159
160
- ` useSyncExternalStore` を追加するもう 1 つの理由は、時間とともに変化するブラウザが公開する値にサブスクライブしたい場合です 。たとえば、コンポーネントがネットワーク接続がアクティブかどうかを表示したいとします。ブラウザは、この情報を [` navigator .onLine ` ](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/onLine) というプロパティを介して公開します。
160
+ ` useSyncExternalStore` を追加するもう 1 つの理由は、時間とともに変化する、ブラウザが公開する値にサブスクライブしたい場合です 。たとえば、コンポーネントがネットワーク接続がアクティブかどうかを表示したいとします。ブラウザは、この情報を [` navigator .onLine ` ](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/onLine) というプロパティを介して公開します。
161
161
162
162
この値は React の知らないところで変更される可能性があるので、` useSyncExternalStore` でそれを読み取るべきです。
163
163
You can’t perform that action at this time.
0 commit comments