Skip to content

Commit deca6d2

Browse files
authored
Merge pull request #873 from reactjs/fix-flushSync
flushSync: Translate untranslated parts
2 parents 4c41da7 + 21756a8 commit deca6d2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/content/reference/react-dom/flushSync.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@ flushSync(() => {
5151

5252
#### 注意点 {/*caveats*/}
5353

54-
* `flushSync` can significantly hurt performance. Use sparingly.
55-
* `flushSync` may force pending Suspense boundaries to show their `fallback` state.
56-
* `flushSync` may run pending Effects and synchronously apply any updates they contain before returning.
57-
* `flushSync` may flush updates outside the callback when necessary to flush the updates inside the callback. For example, if there are pending updates from a click, React may flush those before flushing the updates inside the callback.
54+
* `flushSync` はパフォーマンスを大幅に低下させることがあります。慎重に使用してください。
55+
* `flushSync` により、保留中のサスペンスバウンダリが強制的に `fallback` 状態で表示される可能性があります。
56+
* `flushSync` は、保留中のエフェクトを実行し、リターンする前にそれらに含まれる更新を同期的に適用することがあります。
57+
* `flushSync` は、コールバック内の更新をフラッシュするために必要な場合、コールバックの外にある更新もフラッシュすることがあります。例えば、クリックに起因する保留中の更新がある場合、React はコールバック内の更新をフラッシュする前にそれらをフラッシュする可能性があります。
5858

5959
---
6060

0 commit comments

Comments
 (0)