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

onInit不会触发useLoading #38

Closed
linzeguang opened this issue Apr 13, 2023 · 2 comments
Closed

onInit不会触发useLoading #38

linzeguang opened this issue Apr 13, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@linzeguang
Copy link

在onInit里调用async methods,组建中的useLoading返回false

@geekact geekact added the bug Something isn't working label Apr 13, 2023
@geekact
Copy link
Member

geekact commented Apr 13, 2023

是因为执行onInit时,react组件还没加载。loading是懒惰处理的,需要根据组件内使用了useLoading(model.method)来决定需不需要处理。
等下发一个小版本

@geekact
Copy link
Member

geekact commented Apr 14, 2023

v1.3.1

@geekact geekact closed this as completed Apr 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants