-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
React.StrictMode 模式下组件内会陷入死循环 #56
Comments
是不是因为调用 setValue 的时机不对?或者传给组件 value 时候没有做好控制。 |
https://codesandbox.io/p/sandbox/yttkt6?file=%2Fsrc%2FCronFormInput.js%3A6%2C47 使用方式的代码可以参考这个 |
面板需要切换到 “分”,因为默认值只设置了“分” |
感谢反馈,r18在开发环境下确实会重复两次 useEffect 等我改下。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The text was updated successfully, but these errors were encountered: