Invalid ref in NextJS
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 25/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- next.js, react, typescript
- 領域
- frontend
調査の方向性
ドキュメントサイトの Inline Editing の例とカスタム EditableCell 実装から始め、ref がどのように渡されるか、また targetRef がいつ利用可能になるかに注目してください。NextJS 環境で例を再現し、その後、初回のレンダリング中に ref が null にならず、セル項目を確実に編集できることを確認してください。
索引モデルが issue の本文から書いたものです。
説明
Is there a way to pass the ref to custom cell renders in NextJS environment?
The Inline Editing example in the documentation website doesn't work in NextJS because the ref provided to EditableCell is always null. I have tried various workarounds like loading the component dynamically and then using React.ForwardRef (link) but nothing seems to work. Even tried disabling SSR explicitly. The ref passed in is only valid after the first render cycle and it seems in the EditableCell class it tries to render with a null ref. You have some code protecting against this situation: {editing && this.targetRef && ( but I'm wondering if there is a nicer or cleaner way to do this? I'm mainly looking for a way to edit the cell items.
- 主要言語
- TypeScript
- スター
- 1.5k
- フォーク
- 171
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Autodesk/react-base-table のほかの issue
-
難易度 3/5 1〜2日 初心者へのやさしさ 25/100
Autodesk/react-base-table#434 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 20/100
Autodesk/react-base-table#433 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 48/100
Autodesk/react-base-table#432 · コメント 1 件 ·
-
Multiple console warnings due to Class Component structure対応中かも @nahrinoda が 113 日前に担当しました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
Autodesk/react-base-table#431 · コメント 2 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
Autodesk/react-base-table#426 ·
Autodesk/react-base-table の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
yjh051108/dsh-routing-suite#216 ·
-
kind/bug priority/needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
Dependencies view: `getParent` loops forever on untitled documents, extension host runs out of memory対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
メンテナーはふだん 1 日以内に返信
-
enhancement good first issue
難易度 2/5 半日 初心者へのやさしさ 66/100
apache/fineract-consumer-facing#175 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1時間未満 初心者へのやさしさ 82/100
awslabs/visual-asset-management-system#413 ·
メンテナーはふだん 1 日以内に返信