使用 react-compiler 的应用程序的正确行为

作者: stevoland创建于 2024年10月3日更新于 2026年9月3日
标签V8react 19

您的功能请求是否与问题有关?请描述。

在使用 react-compiler 进行实验时,我们套件中唯一失败的测试似乎是由于使用了 react-hook-form 中的部分代码,这些代码违反了 react 的"规则"(例如: hook 返回值是不可变的)(即:不局限于 watch)。我已经将 react-compiler 添加到 react-hook-form 的单元测试代码中 这里,并发现

内容来源: react-hook-form/react-hook-form