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

网络请求问题。 #25

Open
YuQi9797 opened this issue Nov 29, 2023 · 0 comments
Open

网络请求问题。 #25

YuQi9797 opened this issue Nov 29, 2023 · 0 comments

Comments

@YuQi9797
Copy link

作者您好,感谢您提供的框架,让我学习上受益匪浅。

我想问问,在继承 BaseGetPageController中, 使用requestData来获取数据。 这里我模拟了下,即不通过网络获取,而是本地模拟数据。 但当我 showSuccess(data) 并且 update() 后, 会出现 错误: setState() or markNeedsBuild() called during build.

那么是否是,网络请求时,由于耗时所以会自动在build后,才调用的,所以不报错呢? 是否有什么优化方法,还是说我本身这样搞就是逻辑错误。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant