-
Notifications
You must be signed in to change notification settings - Fork 1
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
这个支持路由懒加载吗? #1
Comments
支持的 |
但是我试过了,没有缓存 |
function useUpdate(): () => void {
const [, setTrigger] = useState({})
const update = useCallback(() => setTrigger({}), [])
return update
} 这个方法是用于强制更新函数组件的吗?大神? |
是的,和 ahooks 里的 useUpdate 一模一样 这个仓库还没有正式开搞,等开始做了我测一下 lazy 场景,或者你有现成 demo 的话也可以放出来瞅瞅 |
Thank you for your work with this library, very excited to put it in production. |
可以考虑先用 react-activation 来实现 keep-alive 功能 |
好的,我试试,感谢感谢,星星送上 |
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: