[RFC] Server only components
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 25/100
- issue の種類
- 機能追加
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- typescript
調査の方向性
issue #70 のルートレイアウトに関する議論から始め、現在コンポーネントのサブツリーがどのようにレンダリングされているかを整理します。この issue ではファイルやテストは指定されていません。完了条件は、サーバーのみの動作が最も近いレイアウトに従い、クライアント側のオプトインで指定された data-import 属性と data-hydrate 属性を使用し、data-when が hydration のタイミングを制御するかデフォルト設定することです。
索引モデルが issue の本文から書いたものです。
説明
- All components are server-only when the nearest route layout has no
hydratordefined. - For component subtrees to opt-in to client-side rendering, they need to attach some special
data-attributes to the subtree's root element.- One attribute will tell Saus which component module to import and which export specifier points to the component (eg:
data-import="/path/to/module.js#MyComponent"). - The 2nd attribute will tell Saus which hydrator module to import (eg:
data-hydrate="/path/to/module.js"). - The final attribute is optional, and it will tell Saus when to hydrate (eg:
data-when="visible"). If undefined, Saus will hydrate the subtree immediately after its modules are loaded.
- One attribute will tell Saus which component module to import and which export specifier points to the component (eg:
- 主要言語
- TypeScript
- スター
- 38
- フォーク
- 1
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
alloc/saus のほかの issue
-
enhancement
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
-
package idea
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
-
Supertokens plugin オープンhelp wanted package idea
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
-
enhancement plugin:aws saus deploy
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
-
bug saus deploy
難易度 4/5 3〜5日 初心者へのやさしさ 42/100
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
mksglu/context-mode#1200 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
jaegertracing/jaeger-ui#4506 ·
-
area:desktop area:ui bug platform:macos
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
anthropics/claude-code#96687 ·
-
good first issue
難易度 1/5 1時間未満 初心者へのやさしさ 95/100
AOSSIE-Org/DebateAI#582 · コメント 2 件 ·