Skip to content
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

H5 怎么实现 useDidShow一样的功能 #7645

Closed
hoozi opened this issue Sep 18, 2020 · 2 comments
Closed

H5 怎么实现 useDidShow一样的功能 #7645

hoozi opened this issue Sep 18, 2020 · 2 comments
Labels
enhancement New feature or request T-h5 Target - 编译到 H5

Comments

@hoozi
Copy link

hoozi commented Sep 18, 2020

这个特性解决了什么问题?

h5 有这么一个需求:navigationTo或者navigationBack进入页面,刷新数据,用react.useEffect 只能在navigationTo触发,navigationBack无效;

这个 API 长什么样?

H5 也能提供一个 useDidShow的hook

@ZakaryCode
Copy link
Contributor

直接用就行了,参考文档

@ZakaryCode ZakaryCode added the T-h5 Target - 编译到 H5 label Jan 15, 2022
@ZakaryCode ZakaryCode moved this to Done in H5 Apr 10, 2023
@ZakaryCode ZakaryCode added this to H5 Apr 10, 2023
@zengyayao
Copy link

直接用就行了,参考文档

这个并不能直接用,h5 back useDidShow 是不会调用的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request T-h5 Target - 编译到 H5
Projects
Archived in project
Development

No branches or pull requests

3 participants