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
zustand 是一个基于 Redux + Context 思想(并不依赖 redux)的数据流管理工具,并暴露 Hooks API,非常时髦,值得学习一下 API 与实现原理。
精读《zustand 源码》
The text was updated successfully, but these errors were encountered:
"compare 函数" 对比的是 useCallback 返回值(函数)的执行结果,对比是否为 true 不一定
Sorry, something went wrong.
嗯,这样写更准确,useCallback 返回值就是函数。
最近看了最新zustand,现在它用了“React.useSyncExternalStore()"这个hook,连context都省掉了。不过具体这个hook的原理还没看明白
No branches or pull requests
zustand 是一个基于 Redux + Context 思想(并不依赖 redux)的数据流管理工具,并暴露 Hooks API,非常时髦,值得学习一下 API 与实现原理。
精读《zustand 源码》
The text was updated successfully, but these errors were encountered: