react-hook-form 输入处理程序花费的时间太长
react-hook-form input handler taking too long
我在使用 react-hook-form in context mode 时遇到了很大的性能问题。 onblur
、onchange
和 onfocus
等输入事件的响应时间超过 1 秒。
解决方案
问题根源在于启用了名为 React-Sight 的 Google Chrome/Edge 扩展。当加载项最终因内存问题而崩溃时,表单性能得到了很大提高,终于可以再次使用了。
我在使用 react-hook-form in context mode 时遇到了很大的性能问题。 onblur
、onchange
和 onfocus
等输入事件的响应时间超过 1 秒。
解决方案
问题根源在于启用了名为 React-Sight 的 Google Chrome/Edge 扩展。当加载项最终因内存问题而崩溃时,表单性能得到了很大提高,终于可以再次使用了。