Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

[RFC] Server only components

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

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

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
typescript
領域
frontend, web-dev

調査の方向性

issue #70 のルートレイアウトに関する議論から始め、現在コンポーネントのサブツリーがどのようにレンダリングされているかを整理します。この issue ではファイルやテストは指定されていません。完了条件は、サーバーのみの動作が最も近いレイアウトに従い、クライアント側のオプトインで指定された data-import 属性と data-hydrate 属性を使用し、data-when が hydration のタイミングを制御するかデフォルト設定することです。

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

説明

proposal roadmap
  • All components are server-only when the nearest route layout has no hydrator defined.
  • 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.
主要言語
TypeScript
スター
38
フォーク
1
PR マージ指標
30日以内にマージされた PR はありません

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

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

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

alloc/saus のほかの issue

alloc/saus の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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