reactjs / reactjs/react.dev

Outdated scheduling in "Design Principles"

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

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

主要言語
JavaScript
スター
11.8k
フォーク
7.9k
平均マージ
1日 11時間
マージ済み PR(30日)
11

説明

This is a subtle distinction but a powerful one. Since you don’t call that component function but let React call it, it means React has the power to delay calling it if necessary. In its current implementation React walks the tree recursively and calls render functions of the whole updated tree during a single tick. However in the future it might start delaying some updates to avoid dropping frames.

If something is offscreen, we can delay any logic related to it. ... To be clear, we are not taking advantage of this right now.

As far as I understand, React is taking advantage of delaying updates? https://github.com/facebook/react/issues/6170#issuecomment-318204454
If that's the case, seems like this part of the docs is outdated.

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

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

調査の方向性

「Design Principles」のドキュメントページを見つけ、引用されているスケジューリングに関する箇所を、リンクされているReactのissueとコメントと併せて確認してください。記述が古くなっているかどうかを確認し、その後、影響を受ける文言をReactの現在の更新スケジューリング動作に一致するように修正し、ドキュメントの変更を検証してください。

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

評価

技術スタック
javascript, react
領域
documentation
issue の種類
ドキュメント
難易度
2/5
見積もり時間
1〜3時間
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
38/100

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

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