dirtyFields will not update after reset when using devtools

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

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
react, typescript
領域
devtools, frontend

調査の方向性

Start with the linked CodeSandbox reproduction at src/index.jsx and reproduce the sequence of typing, reset, and typing again. Inspect how the devtools observes form state; done means dirtyFields updates after reset while value continues to update, including the reported resetField and DevTools-removal cases.

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

説明

bug
Codesandbox link

https://codesandbox.io/s/react-hook-form-v6-formstate-forked-4qlr7d?file=/src/index.jsx

Reproduce
  1. type some characters in input box
  2. click reset button
  3. type in input box
  4. after above, you can see dirtyFields will not update. In devtools plane, only value field still update
Addition
  1. if you delete characters which type in step3, the dirtyFields will work on normal
  2. if you use resetField button or remove Devtool, the dirtyFields will work on normal
主要言語
TypeScript
スター
670
フォーク
55
PR マージ指標
30日以内にマージされた PR はありません

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

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

はじめの一歩

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

react-hook-form/devtools のほかの issue

react-hook-form/devtools の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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