We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
util/src/hooks/useMergedState.ts
Line 39 in c809254
这里为什么要加这么一个判断,如果修改的值变成和默认值一样,这个函数就不执行了。是为了解决哪个问题?
The text was updated successfully, but these errors were encountered:
现在有个bug,当传入的值和默认值一致时,发现函数没有调用了。看了源码才知道是这个原因,当时是为了解决哪个问题?或者说哪个场景,我说的这个场景应该怎么处理?
Sorry, something went wrong.
No branches or pull requests
util/src/hooks/useMergedState.ts
Line 39 in c809254
这里为什么要加这么一个判断,如果修改的值变成和默认值一样,这个函数就不执行了。是为了解决哪个问题?
The text was updated successfully, but these errors were encountered: