Only Rerender "DAO Connected" Components
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 25/100
- issue の種類
- リファクタリング
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- react, typescript
- 領域
- frontend, performance
調査の方向性
まず、Arc.Config、DAO、DAO.Data について説明されているコンポーネントのサブスクリプション動作を確認します。特に、DAO の状態更新がどのように再レンダリングを引き起こすかを確認してください。最適化を進めるかどうかを決定する前に、提案されたメトリクスを収集します。DAO に接続されたコンポーネントのみを再レンダリングするための、測定済みで合意された範囲を確立できれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Only rerender components that are "DAO Connected".
This can be done through supporting a subscription model, where components that depend on additional contextual information (ex: , ).
For example, consider...
<Arc config={new Config("web3provider", "graphqlprovider")}>
<View1 />
<DAO address={"0x1234"}>
<View2 />
<DAO.Data>
{data => (
<View3 value={data.value} />
)}
</DAO.Data>
</DAO>
</Arc>
Ideally, if Arc.Config's web3 provider changes, View1 & 2 shouldn't have to rerender, but View3 should because the data may be different. This can be partially achieved if DAO connect's the Arc.Config's subscriber list, which will cause it to be told to rerender if the config ever changes, but this only causes View1 to not be rendered. View2 would still be rendered because currently the data is stored within the Component's state (the DAO's state), which would cause View2 to still be rendered.
Going to leave this here for now, as it'll be interesting to come back to this after some metrics have been gathered, as I feel this may be premature optimization.
- 主要言語
- TypeScript
- スター
- 21
- フォーク
- 9
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
dOrgTech/arc.react のほかの issue
-
devexp-enhancement feature good first issue help wanted
難易度 5/5 1週間以上 初心者へのやさしさ 30/100
-
hi-pri
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
-
low-pri
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
-
low-pri
難易度 5/5 1週間以上 初心者へのやさしさ 15/100
-
low-pri quality-assurance ux-enhancement
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
dOrgTech/arc.react の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
bug v2
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
modelcontextprotocol/inspector#2458 · コメント 1 件 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 75/100
railmapgen/rmp-gallery#4068 ·
-
Mend: dependency security vulnerability status: needs triage 🕵️♀️
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
carbon-design-system/ibm-products#9907 ·